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

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

Issue 8312005: Ignore paths when matching patterns for extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix silly typo. 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 #include "content/browser/mock_content_browser_client.h" 5 #include "content/browser/mock_content_browser_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 void MockContentBrowserClient::RequestDesktopNotificationPermission( 177 void MockContentBrowserClient::RequestDesktopNotificationPermission(
178 const GURL& source_origin, 178 const GURL& source_origin,
179 int callback_context, 179 int callback_context,
180 int render_process_id, 180 int render_process_id,
181 int render_view_id) { 181 int render_view_id) {
182 } 182 }
183 183
184 WebKit::WebNotificationPresenter::Permission 184 WebKit::WebNotificationPresenter::Permission
185 MockContentBrowserClient::CheckDesktopNotificationPermission( 185 MockContentBrowserClient::CheckDesktopNotificationPermission(
186 const GURL& source_url, 186 const GURL& source_origin,
187 const content::ResourceContext& context) { 187 const content::ResourceContext& context,
188 int render_process_id) {
188 return WebKit::WebNotificationPresenter::PermissionAllowed; 189 return WebKit::WebNotificationPresenter::PermissionAllowed;
189 } 190 }
190 191
191 void MockContentBrowserClient::ShowDesktopNotification( 192 void MockContentBrowserClient::ShowDesktopNotification(
192 const DesktopNotificationHostMsg_Show_Params& params, 193 const DesktopNotificationHostMsg_Show_Params& params,
193 int render_process_id, 194 int render_process_id,
194 int render_view_id, 195 int render_view_id,
195 bool worker) { 196 bool worker) {
196 } 197 }
197 198
198 void MockContentBrowserClient::CancelDesktopNotification( 199 void MockContentBrowserClient::CancelDesktopNotification(
199 int render_process_id, 200 int render_process_id,
200 int render_view_id, 201 int render_view_id,
201 int notification_id) { 202 int notification_id) {
202 } 203 }
203 204
204 bool MockContentBrowserClient::CanCreateWindow( 205 bool MockContentBrowserClient::CanCreateWindow(
205 const GURL& source_url, 206 const GURL& source_origin,
206 WindowContainerType container_type, 207 WindowContainerType container_type,
207 const content::ResourceContext& context) { 208 const content::ResourceContext& context,
209 int render_process_id) {
208 return true; 210 return true;
209 } 211 }
210 212
211 std::string MockContentBrowserClient::GetWorkerProcessTitle( 213 std::string MockContentBrowserClient::GetWorkerProcessTitle(
212 const GURL& url, const content::ResourceContext& context) { 214 const GURL& url, const content::ResourceContext& context) {
213 return std::string(); 215 return std::string();
214 } 216 }
215 217
216 ResourceDispatcherHost* MockContentBrowserClient::GetResourceDispatcherHost() { 218 ResourceDispatcherHost* MockContentBrowserClient::GetResourceDispatcherHost() {
217 return NULL; 219 return NULL;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 #endif 298 #endif
297 299
298 #if defined(USE_NSS) 300 #if defined(USE_NSS)
299 crypto::CryptoModuleBlockingPasswordDelegate* 301 crypto::CryptoModuleBlockingPasswordDelegate*
300 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 302 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
301 return NULL; 303 return NULL;
302 } 304 }
303 #endif 305 #endif
304 306
305 } // namespace content 307 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698