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

Side by Side Diff: content/browser/content_browser_client.h

Issue 7708010: Add more files to content_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: virtual dtor Created 9 years, 4 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 | 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 CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Embedder API (or SPI) for participating in browser logic, to be implemented 58 // Embedder API (or SPI) for participating in browser logic, to be implemented
59 // by the client of the content browser. See ChromeContentBrowserClient for the 59 // by the client of the content browser. See ChromeContentBrowserClient for the
60 // principal implementation. The methods are assumed to be called on the UI 60 // principal implementation. The methods are assumed to be called on the UI
61 // thread unless otherwise specified. Use this "escape hatch" sparingly, to 61 // thread unless otherwise specified. Use this "escape hatch" sparingly, to
62 // avoid the embedder interface ballooning and becoming very specific to Chrome. 62 // avoid the embedder interface ballooning and becoming very specific to Chrome.
63 // (Often, the call out to the client can happen in a different part of the code 63 // (Often, the call out to the client can happen in a different part of the code
64 // that either already has a hook out to the embedder, or calls out to one of 64 // that either already has a hook out to the embedder, or calls out to one of
65 // the observer interfaces.) 65 // the observer interfaces.)
66 class ContentBrowserClient { 66 class ContentBrowserClient {
67 public: 67 public:
68 virtual ~ContentBrowserClient() {}
69
68 // Notifies that a new RenderHostView has been created. 70 // Notifies that a new RenderHostView has been created.
69 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) = 0; 71 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) = 0;
70 72
71 // Notifies that a BrowserRenderProcessHost has been created. This is called 73 // Notifies that a BrowserRenderProcessHost has been created. This is called
72 // before the content layer adds its own BrowserMessageFilters, so that the 74 // before the content layer adds its own BrowserMessageFilters, so that the
73 // embedder's IPC filters have priority. 75 // embedder's IPC filters have priority.
74 virtual void BrowserRenderProcessHostCreated( 76 virtual void BrowserRenderProcessHostCreated(
75 BrowserRenderProcessHost* host) = 0; 77 BrowserRenderProcessHost* host) = 0;
76 78
77 // Notifies that a PluginProcessHost has been created. This is called 79 // Notifies that a PluginProcessHost has been created. This is called
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // This is called on a worker thread. 281 // This is called on a worker thread.
280 virtual 282 virtual
281 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 283 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
282 const GURL& url) = 0; 284 const GURL& url) = 0;
283 #endif 285 #endif
284 }; 286 };
285 287
286 } // namespace content 288 } // namespace content
287 289
288 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 290 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/browser_url_handler_unittest.cc ('k') | content/browser/mock_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698