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

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

Issue 398163008: Export content_common dependency from some content targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add content::NotificationPresenterPermission enum Created 6 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "content/public/browser/certificate_request_result_type.h" 18 #include "content/public/browser/certificate_request_result_type.h"
19 #include "content/public/browser/notification_presenter_permission.h"
19 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
20 #include "content/public/common/resource_type.h" 21 #include "content/public/common/resource_type.h"
21 #include "content/public/common/socket_permission_request.h" 22 #include "content/public/common/socket_permission_request.h"
22 #include "content/public/common/window_container_type.h" 23 #include "content/public/common/window_container_type.h"
23 #include "net/base/mime_util.h" 24 #include "net/base/mime_util.h"
24 #include "net/cookies/canonical_cookie.h" 25 #include "net/cookies/canonical_cookie.h"
25 #include "net/url_request/url_request_interceptor.h" 26 #include "net/url_request/url_request_interceptor.h"
26 #include "net/url_request/url_request_job_factory.h" 27 #include "net/url_request/url_request_job_factory.h"
27 #include "third_party/WebKit/public/web/WebNotificationPresenter.h"
28 #include "ui/base/window_open_disposition.h" 28 #include "ui/base/window_open_disposition.h"
29 #include "webkit/browser/fileapi/file_system_context.h" 29 #include "webkit/browser/fileapi/file_system_context.h"
30 30
31 #if defined(OS_POSIX) && !defined(OS_MACOSX) 31 #if defined(OS_POSIX) && !defined(OS_MACOSX)
32 #include "base/posix/global_descriptors.h" 32 #include "base/posix/global_descriptors.h"
33 #endif 33 #endif
34 34
35 #if defined(OS_POSIX) 35 #if defined(OS_POSIX)
36 #include "content/public/browser/file_descriptor_info.h" 36 #include "content/public/browser/file_descriptor_info.h"
37 #endif 37 #endif
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 420
421 // Asks permission to show desktop notifications. |callback| needs to be run 421 // Asks permission to show desktop notifications. |callback| needs to be run
422 // when the user approves the request. 422 // when the user approves the request.
423 virtual void RequestDesktopNotificationPermission( 423 virtual void RequestDesktopNotificationPermission(
424 const GURL& source_origin, 424 const GURL& source_origin,
425 RenderFrameHost* render_frame_host, 425 RenderFrameHost* render_frame_host,
426 const base::Closure& callback) {} 426 const base::Closure& callback) {}
427 427
428 // Checks if the given page has permission to show desktop notifications. 428 // Checks if the given page has permission to show desktop notifications.
429 // This is called on the IO thread. 429 // This is called on the IO thread.
430 virtual blink::WebNotificationPresenter::Permission 430 virtual NotificationPresenterPermission
431 CheckDesktopNotificationPermission( 431 CheckDesktopNotificationPermission(
432 const GURL& source_url, 432 const GURL& source_url,
433 ResourceContext* context, 433 ResourceContext* context,
434 int render_process_id); 434 int render_process_id);
435 435
436 // Show a desktop notification. If |cancel_callback| is non-null, it's set to 436 // Show a desktop notification. If |cancel_callback| is non-null, it's set to
437 // a callback which can be used to cancel the notification. 437 // a callback which can be used to cancel the notification.
438 virtual void ShowDesktopNotification( 438 virtual void ShowDesktopNotification(
439 const ShowDesktopNotificationHostMsgParams& params, 439 const ShowDesktopNotificationHostMsgParams& params,
440 RenderFrameHost* render_frame_host, 440 RenderFrameHost* render_frame_host,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 648 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
649 // implementation. Return NULL to disable external surface video. 649 // implementation. Return NULL to disable external surface video.
650 virtual ExternalVideoSurfaceContainer* 650 virtual ExternalVideoSurfaceContainer*
651 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 651 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
652 #endif 652 #endif
653 }; 653 };
654 654
655 } // namespace content 655 } // namespace content
656 656
657 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 657 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698