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

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

Issue 489763002: MacViews: Gets a webview working in views_examples_with_content_exe Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to master Created 6 years, 3 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
« 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/desktop_notification_delegate.h" 19 #include "content/public/browser/desktop_notification_delegate.h"
20 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
21 #include "content/public/common/resource_type.h" 21 #include "content/public/common/resource_type.h"
22 #include "content/public/common/socket_permission_request.h" 22 #include "content/public/common/socket_permission_request.h"
23 #include "content/public/common/window_container_type.h" 23 #include "content/public/common/window_container_type.h"
24 #include "net/base/mime_util.h" 24 #include "net/base/mime_util.h"
25 #include "net/cookies/canonical_cookie.h" 25 #include "net/cookies/canonical_cookie.h"
26 #include "net/url_request/url_request_interceptor.h" 26 #include "net/url_request/url_request_interceptor.h"
27 #include "net/url_request/url_request_job_factory.h" 27 #include "net/url_request/url_request_job_factory.h"
28 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" 28 #include "third_party/WebKit/public/platform/WebNotificationPermission.h"
29 #include "ui/base/window_open_disposition.h" 29 #include "ui/base/window_open_disposition.h"
30 #include "ui/gfx/native_widget_types.h"
30 #include "webkit/browser/fileapi/file_system_context.h" 31 #include "webkit/browser/fileapi/file_system_context.h"
31 32
32 #if defined(OS_POSIX) && !defined(OS_MACOSX) 33 #if defined(OS_POSIX) && !defined(OS_MACOSX)
33 #include "base/posix/global_descriptors.h" 34 #include "base/posix/global_descriptors.h"
34 #endif 35 #endif
35 36
36 #if defined(OS_POSIX) 37 #if defined(OS_POSIX)
37 #include "content/public/browser/file_descriptor_info.h" 38 #include "content/public/browser/file_descriptor_info.h"
38 #endif 39 #endif
39 40
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Allows the embedder to set any number of custom BrowserMainParts 134 // Allows the embedder to set any number of custom BrowserMainParts
134 // implementations for the browser startup code. See comments in 135 // implementations for the browser startup code. See comments in
135 // browser_main_parts.h. 136 // browser_main_parts.h.
136 virtual BrowserMainParts* CreateBrowserMainParts( 137 virtual BrowserMainParts* CreateBrowserMainParts(
137 const MainFunctionParams& parameters); 138 const MainFunctionParams& parameters);
138 139
139 // If content creates the WebContentsView implementation, it will ask the 140 // If content creates the WebContentsView implementation, it will ask the
140 // embedder to return an (optional) delegate to customize it. The view will 141 // embedder to return an (optional) delegate to customize it. The view will
141 // own the delegate. 142 // own the delegate.
142 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( 143 virtual WebContentsViewDelegate* GetWebContentsViewDelegate(
143 WebContents* web_contents); 144 WebContents* web_contents,
145 gfx::NativeView context);
144 146
145 // Notifies that a render process will be created. This is called before 147 // Notifies that a render process will be created. This is called before
146 // the content layer adds its own BrowserMessageFilters, so that the 148 // the content layer adds its own BrowserMessageFilters, so that the
147 // embedder's IPC filters have priority. 149 // embedder's IPC filters have priority.
148 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} 150 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {}
149 151
150 // Notifies that a BrowserChildProcessHost has been created. 152 // Notifies that a BrowserChildProcessHost has been created.
151 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} 153 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {}
152 154
153 // Get the effective URL for the given actual URL, to allow an embedder to 155 // Get the effective URL for the given actual URL, to allow an embedder to
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 637 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
636 // implementation. Return NULL to disable external surface video. 638 // implementation. Return NULL to disable external surface video.
637 virtual ExternalVideoSurfaceContainer* 639 virtual ExternalVideoSurfaceContainer*
638 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 640 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
639 #endif 641 #endif
640 }; 642 };
641 643
642 } // namespace content 644 } // namespace content
643 645
644 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 646 #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