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

Side by Side Diff: chrome/browser/sidebar/sidebar_container.cc

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (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 #include "chrome/browser/sidebar/sidebar_container.h" 5 #include "chrome/browser/sidebar/sidebar_container.h"
6 6
7 #include "chrome/browser/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" 9 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 #include "chrome/common/extensions/extension_resource.h" 11 #include "chrome/common/extensions/extension_resource.h"
12 #include "chrome/common/extensions/extension_sidebar_defaults.h" 12 #include "chrome/common/extensions/extension_sidebar_defaults.h"
13 #include "chrome/common/extensions/extension_sidebar_utils.h" 13 #include "chrome/common/extensions/extension_sidebar_utils.h"
14 #include "content/browser/renderer_host/browser_render_process_host.h"
15 #include "content/browser/renderer_host/render_view_host.h" 14 #include "content/browser/renderer_host/render_view_host.h"
16 #include "content/browser/tab_contents/navigation_controller.h" 15 #include "content/browser/tab_contents/navigation_controller.h"
17 #include "content/browser/tab_contents/navigation_entry.h" 16 #include "content/browser/tab_contents/navigation_entry.h"
18 #include "content/browser/tab_contents/tab_contents.h" 17 #include "content/browser/tab_contents/tab_contents.h"
19 #include "content/browser/tab_contents/tab_contents_view.h" 18 #include "content/browser/tab_contents/tab_contents_view.h"
19 #include "content/public/browser/render_process_host.h"
20 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
21 #include "third_party/skia/include/core/SkBitmap.h" 21 #include "third_party/skia/include/core/SkBitmap.h"
22 22
23 SidebarContainer::SidebarContainer(TabContents* tab, 23 SidebarContainer::SidebarContainer(TabContents* tab,
24 const std::string& content_id, 24 const std::string& content_id,
25 Delegate* delegate) 25 Delegate* delegate)
26 : tab_(tab), 26 : tab_(tab),
27 content_id_(content_id), 27 content_id_(content_id),
28 delegate_(delegate), 28 delegate_(delegate),
29 icon_(new SkBitmap), 29 icon_(new SkBitmap),
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 const Extension* SidebarContainer::GetExtension() const { 127 const Extension* SidebarContainer::GetExtension() const {
128 Profile* profile = 128 Profile* profile =
129 Profile::FromBrowserContext(sidebar_contents_->browser_context()); 129 Profile::FromBrowserContext(sidebar_contents_->browser_context());
130 ExtensionService* service = profile->GetExtensionService(); 130 ExtensionService* service = profile->GetExtensionService();
131 if (!service) 131 if (!service)
132 return NULL; 132 return NULL;
133 return service->GetExtensionById( 133 return service->GetExtensionById(
134 extension_sidebar_utils::GetExtensionIdByContentId(content_id_), false); 134 extension_sidebar_utils::GetExtensionIdByContentId(content_id_), false);
135 } 135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698