<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_
#define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_
#pragma once

#include <vector>

#include "base/id_map.h"
#include "content/renderer/render_view_observer.h"

class RenderView;
class SpellCheck;

namespace WebKit {
class WebString;
class WebTextCheckingResult;
class WebTextCheckingCompletion;
}

// This class deals with invoking browser-side spellcheck mechanism
// which is done asynchronously.
class SpellCheckProvider : public RenderViewObserver {
 public:
  typedef IDMap<WebKit::WebTextCheckingCompletion> WebTextCheckCompletions;
<commit_msg>Don't forward declare WebKit::WebTextCheckingResult temporarily in order to convert it to a struct. Review URL: http://codereview.chromium.org/6726001<commit_after>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_
#define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_
#pragma once

#include <vector>

#include "base/id_map.h"
#include "content/renderer/render_view_observer.h"
// TODO(jam): move this to .cc once WebTextCheckingResult is converted to a struct
#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult.h"

class RenderView;
class SpellCheck;

namespace WebKit {
class WebString;
class WebTextCheckingCompletion;
//struct WebTextCheckingResult;
}

// This class deals with invoking browser-side spellcheck mechanism
// which is done asynchronously.
class SpellCheckProvider : public RenderViewObserver {
 public:
  typedef IDMap<WebKit::WebTextCheckingCompletion> WebTextCheckCompletions;

{'fraction_non_alphanumeric': 0.07034914017717561, 'fraction_numerical': 0.007816571130797291, 'mean_word_length': 6.084870848708487, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5825001', 'n_tokens_mistral': 605, 'n_tokens_neox': 585, 'n_words': 175}