Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Side by Side Diff: chrome/browser/spellchecker/spellcheck_host.h

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 16
17 namespace base { 17 namespace base {
18 class WaitableEvent; 18 class WaitableEvent;
19 } 19 }
20 20
21 namespace content {
22 class RenderProcessHost;
23 }
24
21 class Profile; 25 class Profile;
22 class RenderProcessHost;
23 class SpellCheckHostMetrics; 26 class SpellCheckHostMetrics;
24 class SpellCheckProfileProvider; 27 class SpellCheckProfileProvider;
25 28
26 namespace net { 29 namespace net {
27 class URLRequestContextGetter; 30 class URLRequestContextGetter;
28 } 31 }
29 32
30 // An abstract interface that provides operations that controls the spellchecker 33 // An abstract interface that provides operations that controls the spellchecker
31 // attached to the browser. This class provides the operations listed below: 34 // attached to the browser. This class provides the operations listed below:
32 // * Adding a word to the user dictionary; 35 // * Adding a word to the user dictionary;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const std::string& language, 68 const std::string& language,
66 net::URLRequestContextGetter* request_context_getter, 69 net::URLRequestContextGetter* request_context_getter,
67 SpellCheckHostMetrics* metrics); 70 SpellCheckHostMetrics* metrics);
68 71
69 // Clears a profile which is set on creation. 72 // Clears a profile which is set on creation.
70 // Used to prevent calling back to a deleted object. 73 // Used to prevent calling back to a deleted object.
71 virtual void UnsetProfile() = 0; 74 virtual void UnsetProfile() = 0;
72 75
73 // Pass the renderer some basic intialization information. Note that the 76 // Pass the renderer some basic intialization information. Note that the
74 // renderer will not load Hunspell until it needs to. 77 // renderer will not load Hunspell until it needs to.
75 virtual void InitForRenderer(RenderProcessHost* process) = 0; 78 virtual void InitForRenderer(content::RenderProcessHost* process) = 0;
76 79
77 // Adds the given word to the custom words list and inform renderer of the 80 // Adds the given word to the custom words list and inform renderer of the
78 // update. 81 // update.
79 virtual void AddWord(const std::string& word) = 0; 82 virtual void AddWord(const std::string& word) = 0;
80 83
81 virtual const base::PlatformFile& GetDictionaryFile() const = 0; 84 virtual const base::PlatformFile& GetDictionaryFile() const = 0;
82 85
83 virtual const std::string& GetLanguage() const = 0; 86 virtual const std::string& GetLanguage() const = 0;
84 87
85 virtual bool IsUsingPlatformChecker() const = 0; 88 virtual bool IsUsingPlatformChecker() const = 0;
(...skipping 25 matching lines...) Expand all
111 114
112 // Attaches an event so browser tests can listen the status events. 115 // Attaches an event so browser tests can listen the status events.
113 static void AttachStatusEvent(base::WaitableEvent* status_event); 116 static void AttachStatusEvent(base::WaitableEvent* status_event);
114 117
115 // Waits until a spellchecker updates its status. This function returns 118 // Waits until a spellchecker updates its status. This function returns
116 // immediately when we do not set an event to |status_event_|. 119 // immediately when we do not set an event to |status_event_|.
117 static EventType WaitStatusEvent(); 120 static EventType WaitStatusEvent();
118 }; 121 };
119 122
120 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_ 123 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sidebar/sidebar_container.cc ('k') | chrome/browser/spellchecker/spellcheck_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698