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

Side by Side Diff: chrome/browser/extensions/extension_host.cc

Issue 9146028: Define the public interface for content browser SiteInstance. This interface is implemented by th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 #include "chrome/browser/extensions/extension_host.h" 5 #include "chrome/browser/extensions/extension_host.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 25 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
26 #include "chrome/common/chrome_constants.h" 26 #include "chrome/common/chrome_constants.h"
27 #include "chrome/common/chrome_notification_types.h" 27 #include "chrome/common/chrome_notification_types.h"
28 #include "chrome/common/chrome_view_type.h" 28 #include "chrome/common/chrome_view_type.h"
29 #include "chrome/common/extensions/extension.h" 29 #include "chrome/common/extensions/extension.h"
30 #include "chrome/common/extensions/extension_constants.h" 30 #include "chrome/common/extensions/extension_constants.h"
31 #include "chrome/common/extensions/extension_messages.h" 31 #include "chrome/common/extensions/extension_messages.h"
32 #include "chrome/common/render_messages.h" 32 #include "chrome/common/render_messages.h"
33 #include "chrome/common/url_constants.h" 33 #include "chrome/common/url_constants.h"
34 #include "content/browser/renderer_host/render_view_host.h" 34 #include "content/browser/renderer_host/render_view_host.h"
35 #include "content/browser/site_instance.h"
36 #include "content/public/browser/content_browser_client.h" 35 #include "content/public/browser/content_browser_client.h"
37 #include "content/public/browser/native_web_keyboard_event.h" 36 #include "content/public/browser/native_web_keyboard_event.h"
38 #include "content/public/browser/notification_service.h" 37 #include "content/public/browser/notification_service.h"
39 #include "content/public/browser/render_process_host.h" 38 #include "content/public/browser/render_process_host.h"
39 #include "content/public/browser/site_instance.h"
40 #include "content/public/browser/web_contents.h" 40 #include "content/public/browser/web_contents.h"
41 #include "content/public/browser/web_contents_view.h" 41 #include "content/public/browser/web_contents_view.h"
42 #include "grit/browser_resources.h" 42 #include "grit/browser_resources.h"
43 #include "grit/chromium_strings.h" 43 #include "grit/chromium_strings.h"
44 #include "grit/generated_resources.h" 44 #include "grit/generated_resources.h"
45 #include "ui/base/keycodes/keyboard_codes.h" 45 #include "ui/base/keycodes/keyboard_codes.h"
46 #include "ui/base/l10n/l10n_util.h" 46 #include "ui/base/l10n/l10n_util.h"
47 #include "ui/base/resource/resource_bundle.h" 47 #include "ui/base/resource/resource_bundle.h"
48 48
49 #if defined(TOOLKIT_VIEWS) 49 #if defined(TOOLKIT_VIEWS)
50 #include "ui/views/widget/widget.h" 50 #include "ui/views/widget/widget.h"
51 #endif 51 #endif
52 52
53 using WebKit::WebDragOperation; 53 using WebKit::WebDragOperation;
54 using WebKit::WebDragOperationsMask; 54 using WebKit::WebDragOperationsMask;
55 using content::OpenURLParams; 55 using content::OpenURLParams;
56 using content::SiteInstance;
56 using content::WebContents; 57 using content::WebContents;
57 58
58 // Helper class that rate-limits the creation of renderer processes for 59 // Helper class that rate-limits the creation of renderer processes for
59 // ExtensionHosts, to avoid blocking the UI. 60 // ExtensionHosts, to avoid blocking the UI.
60 class ExtensionHost::ProcessCreationQueue { 61 class ExtensionHost::ProcessCreationQueue {
61 public: 62 public:
62 static ProcessCreationQueue* GetInstance() { 63 static ProcessCreationQueue* GetInstance() {
63 return Singleton<ProcessCreationQueue>::get(); 64 return Singleton<ProcessCreationQueue>::get();
64 } 65 }
65 66
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 browser::Navigate(&params); 553 browser::Navigate(&params);
553 } 554 }
554 555
555 556
556 void ExtensionHost::RenderViewReady() { 557 void ExtensionHost::RenderViewReady() {
557 content::NotificationService::current()->Notify( 558 content::NotificationService::current()->Notify(
558 chrome::NOTIFICATION_EXTENSION_HOST_CREATED, 559 chrome::NOTIFICATION_EXTENSION_HOST_CREATED,
559 content::Source<Profile>(profile_), 560 content::Source<Profile>(profile_),
560 content::Details<ExtensionHost>(this)); 561 content::Details<ExtensionHost>(this));
561 } 562 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.h ('k') | chrome/browser/extensions/extension_host_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698