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

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

Issue 7274031: Wholesale move of debugger sources to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS and DEPS. Created 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "content/browser/content_browser_client.h"
11
12 namespace content {
13
14 // Base for unit tests that need to mock the ContentBrowserClient.
15 class MockContentBrowserClient : public ContentBrowserClient {
16 public:
17 virtual ~MockContentBrowserClient();
18
19 virtual void RenderViewHostCreated(
20 RenderViewHost* render_view_host) OVERRIDE;
21 virtual void BrowserRenderProcessHostCreated(
22 BrowserRenderProcessHost* host) OVERRIDE;
23 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE;
24 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE;
25 virtual WebUIFactory* GetWebUIFactory() OVERRIDE;
26 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url) OVERRIDE;
27 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE;
28 virtual std::string GetCanonicalEncodingNameByAliasName(
29 const std::string& alias_name) OVERRIDE;
30 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
31 int child_process_id) OVERRIDE;
32 virtual std::string GetApplicationLocale() OVERRIDE;
33 virtual std::string GetAcceptLangs(const TabContents* tab) OVERRIDE;
34 virtual SkBitmap* GetDefaultFavicon() OVERRIDE;
35 virtual bool AllowAppCache(const GURL& manifest_url,
36 const content::ResourceContext& context) OVERRIDE;
37 virtual bool AllowGetCookie(const GURL& url,
38 const GURL& first_party,
39 const net::CookieList& cookie_list,
40 const content::ResourceContext& context,
41 int render_process_id,
42 int render_view_id) OVERRIDE;
43 virtual bool AllowSetCookie(const GURL& url,
44 const GURL& first_party,
45 const std::string& cookie_line,
46 const content::ResourceContext& context,
47 int render_process_id,
48 int render_view_id,
49 net::CookieOptions* options) OVERRIDE;
50 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE;
51 virtual void RevealFolderInOS(const FilePath& path) OVERRIDE;
52 virtual void AllowCertificateError(
53 SSLCertErrorHandler* handler,
54 bool overridable,
55 Callback2<SSLCertErrorHandler*, bool>::Type* callback) OVERRIDE;
56 virtual void ShowClientCertificateRequestDialog(
57 int render_process_id,
58 int render_view_id,
59 SSLClientAuthHandler* handler) OVERRIDE;
60 virtual void AddNewCertificate(
61 net::URLRequest* request,
62 net::X509Certificate* cert,
63 int render_process_id,
64 int render_view_id) OVERRIDE;
65 virtual void RequestDesktopNotificationPermission(
66 const GURL& source_origin,
67 int callback_context,
68 int render_process_id,
69 int render_view_id) OVERRIDE;
70 virtual WebKit::WebNotificationPresenter::Permission
71 CheckDesktopNotificationPermission(
72 const GURL& source_url,
73 const content::ResourceContext& context) OVERRIDE;
74 virtual void ShowDesktopNotification(
75 const DesktopNotificationHostMsg_Show_Params& params,
76 int render_process_id,
77 int render_view_id,
78 bool worker) OVERRIDE;
79 virtual void CancelDesktopNotification(
80 int render_process_id,
81 int render_view_id,
82 int notification_id) OVERRIDE;
83 virtual bool CanCreateWindow(
84 const GURL& source_url,
85 WindowContainerType container_type,
86 const content::ResourceContext& context) OVERRIDE;
87 virtual std::string GetWorkerProcessTitle(
88 const GURL& url, const content::ResourceContext& context) OVERRIDE;
89 virtual ResourceDispatcherHost* GetResourceDispatcherHost() OVERRIDE;
90 virtual ui::Clipboard* GetClipboard() OVERRIDE;
91
92 #if defined(OS_POSIX) && !defined(OS_MACOSX)
93 virtual int GetCrashSignalFD(const std::string& process_type) OVERRIDE;
94 #endif
95
96 #if defined(USE_NSS)
97 virtual
98 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
99 const GURL& url) OVERRIDE;
100 #endif
101 };
102
103 } // namespace content
104
105 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698