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

Side by Side Diff: chrome/renderer/render_view.h

Issue 2823042: Implement IsSearchProviderInstalled and a test for it. (Closed)
Patch Set: Addressed feedback. Created 10 years, 5 months 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } 207 }
208 208
209 // Called to indicate that there are no matching search results. This is 209 // Called to indicate that there are no matching search results. This is
210 // used internally and also called by plugins that support find in page. 210 // used internally and also called by plugins that support find in page.
211 void ReportNoFindInPageResults(int request_id); 211 void ReportNoFindInPageResults(int request_id);
212 212
213 // Called from JavaScript window.external.AddSearchProvider() to add a 213 // Called from JavaScript window.external.AddSearchProvider() to add a
214 // keyword for a provider described in the given OpenSearch document. 214 // keyword for a provider described in the given OpenSearch document.
215 void AddSearchProvider(const std::string& url); 215 void AddSearchProvider(const std::string& url);
216 216
217 // Returns the install state for the given search provider url.
218 ViewHostMsg_GetSearchProviderInstallState_Params
219 GetSearchProviderInstallState(const std::string& url);
220
217 // Evaluates a string of JavaScript in a particular frame. 221 // Evaluates a string of JavaScript in a particular frame.
218 void EvaluateScript(const std::wstring& frame_xpath, 222 void EvaluateScript(const std::wstring& frame_xpath,
219 const std::wstring& jscript); 223 const std::wstring& jscript);
220 224
221 // Adds the given file chooser request to the file_chooser_completion_ queue 225 // Adds the given file chooser request to the file_chooser_completion_ queue
222 // (see that var for more) and requests the chooser be displayed if there are 226 // (see that var for more) and requests the chooser be displayed if there are
223 // no other waiting items in the queue. 227 // no other waiting items in the queue.
224 // 228 //
225 // Returns true if the chooser was successfully scheduled. False means we 229 // Returns true if the chooser was successfully scheduled. False means we
226 // didn't schedule anything. 230 // didn't schedule anything.
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1300 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1297 // sections rather than throwing it randomly at the end. If you're adding a 1301 // sections rather than throwing it randomly at the end. If you're adding a
1298 // bunch of stuff, you should probably create a helper class and put your 1302 // bunch of stuff, you should probably create a helper class and put your
1299 // data and methods on that to avoid bloating RenderView more. 1303 // data and methods on that to avoid bloating RenderView more.
1300 // --------------------------------------------------------------------------- 1304 // ---------------------------------------------------------------------------
1301 1305
1302 DISALLOW_COPY_AND_ASSIGN(RenderView); 1306 DISALLOW_COPY_AND_ASSIGN(RenderView);
1303 }; 1307 };
1304 1308
1305 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1309 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698