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

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

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MOCK_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual std::string GetCanonicalEncodingNameByAliasName( 44 virtual std::string GetCanonicalEncodingNameByAliasName(
45 const std::string& alias_name) OVERRIDE; 45 const std::string& alias_name) OVERRIDE;
46 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 46 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
47 int child_process_id) OVERRIDE; 47 int child_process_id) OVERRIDE;
48 virtual std::string GetApplicationLocale() OVERRIDE; 48 virtual std::string GetApplicationLocale() OVERRIDE;
49 virtual std::string GetAcceptLangs( 49 virtual std::string GetAcceptLangs(
50 content::BrowserContext* context) OVERRIDE; 50 content::BrowserContext* context) OVERRIDE;
51 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; 51 virtual SkBitmap* GetDefaultFavicon() OVERRIDE;
52 virtual bool AllowAppCache(const GURL& manifest_url, 52 virtual bool AllowAppCache(const GURL& manifest_url,
53 const GURL& first_party, 53 const GURL& first_party,
54 const content::ResourceContext& context) OVERRIDE; 54 content::ResourceContext* context) OVERRIDE;
55 virtual bool AllowGetCookie(const GURL& url, 55 virtual bool AllowGetCookie(const GURL& url,
56 const GURL& first_party, 56 const GURL& first_party,
57 const net::CookieList& cookie_list, 57 const net::CookieList& cookie_list,
58 const content::ResourceContext& context, 58 content::ResourceContext* context,
59 int render_process_id, 59 int render_process_id,
60 int render_view_id) OVERRIDE; 60 int render_view_id) OVERRIDE;
61 virtual bool AllowSetCookie(const GURL& url, 61 virtual bool AllowSetCookie(const GURL& url,
62 const GURL& first_party, 62 const GURL& first_party,
63 const std::string& cookie_line, 63 const std::string& cookie_line,
64 const content::ResourceContext& context, 64 content::ResourceContext* context,
65 int render_process_id, 65 int render_process_id,
66 int render_view_id, 66 int render_view_id,
67 net::CookieOptions* options) OVERRIDE; 67 net::CookieOptions* options) OVERRIDE;
68 virtual bool AllowSaveLocalState( 68 virtual bool AllowSaveLocalState(
69 const content::ResourceContext& context) OVERRIDE; 69 content::ResourceContext* context) OVERRIDE;
70 virtual bool AllowWorkerDatabase( 70 virtual bool AllowWorkerDatabase(
71 const GURL& url, 71 const GURL& url,
72 const string16& name, 72 const string16& name,
73 const string16& display_name, 73 const string16& display_name,
74 unsigned long estimated_size, 74 unsigned long estimated_size,
75 const content::ResourceContext& context, 75 content::ResourceContext* context,
76 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; 76 const std::vector<std::pair<int, int> >& render_views) OVERRIDE;
77 virtual bool AllowWorkerFileSystem( 77 virtual bool AllowWorkerFileSystem(
78 const GURL& url, 78 const GURL& url,
79 const content::ResourceContext& context, 79 content::ResourceContext* context,
80 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; 80 const std::vector<std::pair<int, int> >& render_views) OVERRIDE;
81 virtual net::URLRequestContext* OverrideRequestContextForURL( 81 virtual net::URLRequestContext* OverrideRequestContextForURL(
82 const GURL& url, const content::ResourceContext& context) OVERRIDE; 82 const GURL& url, content::ResourceContext* context) OVERRIDE;
83 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; 83 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE;
84 virtual void OpenItem(const FilePath& path) OVERRIDE; 84 virtual void OpenItem(const FilePath& path) OVERRIDE;
85 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; 85 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE;
86 virtual void AllowCertificateError( 86 virtual void AllowCertificateError(
87 SSLCertErrorHandler* handler, 87 SSLCertErrorHandler* handler,
88 bool overridable, 88 bool overridable,
89 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) 89 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback)
90 OVERRIDE; 90 OVERRIDE;
91 virtual void SelectClientCertificate( 91 virtual void SelectClientCertificate(
92 int render_process_id, 92 int render_process_id,
93 int render_view_id, 93 int render_view_id,
94 SSLClientAuthHandler* handler) OVERRIDE; 94 SSLClientAuthHandler* handler) OVERRIDE;
95 virtual void AddNewCertificate( 95 virtual void AddNewCertificate(
96 net::URLRequest* request, 96 net::URLRequest* request,
97 net::X509Certificate* cert, 97 net::X509Certificate* cert,
98 int render_process_id, 98 int render_process_id,
99 int render_view_id) OVERRIDE; 99 int render_view_id) OVERRIDE;
100 virtual void RequestDesktopNotificationPermission( 100 virtual void RequestDesktopNotificationPermission(
101 const GURL& source_origin, 101 const GURL& source_origin,
102 int callback_context, 102 int callback_context,
103 int render_process_id, 103 int render_process_id,
104 int render_view_id) OVERRIDE; 104 int render_view_id) OVERRIDE;
105 virtual WebKit::WebNotificationPresenter::Permission 105 virtual WebKit::WebNotificationPresenter::Permission
106 CheckDesktopNotificationPermission( 106 CheckDesktopNotificationPermission(
107 const GURL& source_origin, 107 const GURL& source_origin,
108 const content::ResourceContext& context, 108 content::ResourceContext* context,
109 int render_process_id) OVERRIDE; 109 int render_process_id) OVERRIDE;
110 virtual void ShowDesktopNotification( 110 virtual void ShowDesktopNotification(
111 const content::ShowDesktopNotificationHostMsgParams& params, 111 const content::ShowDesktopNotificationHostMsgParams& params,
112 int render_process_id, 112 int render_process_id,
113 int render_view_id, 113 int render_view_id,
114 bool worker) OVERRIDE; 114 bool worker) OVERRIDE;
115 virtual void CancelDesktopNotification( 115 virtual void CancelDesktopNotification(
116 int render_process_id, 116 int render_process_id,
117 int render_view_id, 117 int render_view_id,
118 int notification_id) OVERRIDE; 118 int notification_id) OVERRIDE;
119 virtual bool CanCreateWindow( 119 virtual bool CanCreateWindow(
120 const GURL& source_origin, 120 const GURL& source_origin,
121 WindowContainerType container_type, 121 WindowContainerType container_type,
122 const content::ResourceContext& context, 122 content::ResourceContext* context,
123 int render_process_id) OVERRIDE; 123 int render_process_id) OVERRIDE;
124 virtual std::string GetWorkerProcessTitle( 124 virtual std::string GetWorkerProcessTitle(
125 const GURL& url, const content::ResourceContext& context) OVERRIDE; 125 const GURL& url, content::ResourceContext* context) OVERRIDE;
126 virtual void ResourceDispatcherHostCreated() OVERRIDE; 126 virtual void ResourceDispatcherHostCreated() OVERRIDE;
127 virtual ui::Clipboard* GetClipboard() OVERRIDE; 127 virtual ui::Clipboard* GetClipboard() OVERRIDE;
128 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() OVERRIDE; 128 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() OVERRIDE;
129 virtual net::NetLog* GetNetLog() OVERRIDE; 129 virtual net::NetLog* GetNetLog() OVERRIDE;
130 virtual speech_input::SpeechInputManager* GetSpeechInputManager() OVERRIDE; 130 virtual speech_input::SpeechInputManager* GetSpeechInputManager() OVERRIDE;
131 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; 131 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE;
132 virtual bool IsFastShutdownPossible() OVERRIDE; 132 virtual bool IsFastShutdownPossible() OVERRIDE;
133 virtual void OverrideWebkitPrefs(RenderViewHost* rvh, 133 virtual void OverrideWebkitPrefs(RenderViewHost* rvh,
134 WebPreferences* prefs) OVERRIDE; 134 WebPreferences* prefs) OVERRIDE;
135 virtual void UpdateInspectorSetting(RenderViewHost* rvh, 135 virtual void UpdateInspectorSetting(RenderViewHost* rvh,
(...skipping 23 matching lines...) Expand all
159 private: 159 private:
160 // Temporary directory for GetDefaultDownloadDirectory. 160 // Temporary directory for GetDefaultDownloadDirectory.
161 ScopedTempDir download_dir_; 161 ScopedTempDir download_dir_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); 163 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient);
164 }; 164 };
165 165
166 } // namespace content 166 } // namespace content
167 167
168 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 168 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/download/save_file_manager.cc ('k') | content/browser/mock_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698