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

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

Issue 8312005: Ignore paths when matching patterns for extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 const GURL& source_origin, 245 const GURL& source_origin,
246 int callback_context, 246 int callback_context,
247 int render_process_id, 247 int render_process_id,
248 int render_view_id) = 0; 248 int render_view_id) = 0;
249 249
250 // Checks if the given page has permission to show desktop notifications. 250 // Checks if the given page has permission to show desktop notifications.
251 // This is called on the IO thread. 251 // This is called on the IO thread.
252 virtual WebKit::WebNotificationPresenter::Permission 252 virtual WebKit::WebNotificationPresenter::Permission
253 CheckDesktopNotificationPermission( 253 CheckDesktopNotificationPermission(
254 const GURL& source_url, 254 const GURL& source_url,
255 const content::ResourceContext& context) = 0; 255 const content::ResourceContext& context,
256 int render_process_id) = 0;
256 257
257 // Show a desktop notification. If |worker| is true, the request came from an 258 // Show a desktop notification. If |worker| is true, the request came from an
258 // HTML5 web worker, otherwise, it came from a renderer. 259 // HTML5 web worker, otherwise, it came from a renderer.
259 virtual void ShowDesktopNotification( 260 virtual void ShowDesktopNotification(
260 const DesktopNotificationHostMsg_Show_Params& params, 261 const DesktopNotificationHostMsg_Show_Params& params,
261 int render_process_id, 262 int render_process_id,
262 int render_view_id, 263 int render_view_id,
263 bool worker) = 0; 264 bool worker) = 0;
264 265
265 // Cancels a displayed desktop notification. 266 // Cancels a displayed desktop notification.
266 virtual void CancelDesktopNotification( 267 virtual void CancelDesktopNotification(
267 int render_process_id, 268 int render_process_id,
268 int render_view_id, 269 int render_view_id,
269 int notification_id) = 0; 270 int notification_id) = 0;
270 271
271 // Returns true if the given page is allowed to open a window of the given 272 // Returns true if the given page is allowed to open a window of the given
272 // type. 273 // type.
273 // This is called on the IO thread. 274 // This is called on the IO thread.
274 virtual bool CanCreateWindow( 275 virtual bool CanCreateWindow(
275 const GURL& source_url, 276 const GURL& source_origin,
276 WindowContainerType container_type, 277 WindowContainerType container_type,
277 const content::ResourceContext& context) = 0; 278 const content::ResourceContext& context,
279 int render_process_id) = 0;
278 280
279 // Returns a title string to use in the task manager for a process host with 281 // Returns a title string to use in the task manager for a process host with
280 // the given URL, or the empty string to fall back to the default logic. 282 // the given URL, or the empty string to fall back to the default logic.
281 // This is called on the IO thread. 283 // This is called on the IO thread.
282 virtual std::string GetWorkerProcessTitle( 284 virtual std::string GetWorkerProcessTitle(
283 const GURL& url, const content::ResourceContext& context) = 0; 285 const GURL& url, const content::ResourceContext& context) = 0;
284 286
285 // Getters for common objects. 287 // Getters for common objects.
286 virtual ResourceDispatcherHost* GetResourceDispatcherHost() = 0; 288 virtual ResourceDispatcherHost* GetResourceDispatcherHost() = 0;
287 virtual ui::Clipboard* GetClipboard() = 0; 289 virtual ui::Clipboard* GetClipboard() = 0;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 // This is called on a worker thread. 343 // This is called on a worker thread.
342 virtual 344 virtual
343 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 345 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
344 const GURL& url) = 0; 346 const GURL& url) = 0;
345 #endif 347 #endif
346 }; 348 };
347 349
348 } // namespace content 350 } // namespace content
349 351
350 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 352 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/desktop_notification_messages.h ('k') | content/renderer/notification_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698