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

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

Issue 6598084: Get rid of temporary render_view_host.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/sync/sync_setup_flow.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/renderer_host/render_view_host.h"
10 #include "chrome/browser/tab_contents/navigation_controller.h"
11 #include "chrome/browser/tab_contents/navigation_entry.h"
12 #include "chrome/browser/tab_contents/tab_contents.h"
13 #include "chrome/browser/tab_contents/tab_contents_view.h"
14 #include "chrome/common/bindings_policy.h" 9 #include "chrome/common/bindings_policy.h"
15 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
16 #include "chrome/common/extensions/extension_resource.h" 11 #include "chrome/common/extensions/extension_resource.h"
17 #include "chrome/common/extensions/extension_sidebar_defaults.h" 12 #include "chrome/common/extensions/extension_sidebar_defaults.h"
18 #include "chrome/common/extensions/extension_sidebar_utils.h" 13 #include "chrome/common/extensions/extension_sidebar_utils.h"
14 #include "content/browser/renderer_host/render_view_host.h"
15 #include "content/browser/tab_contents/navigation_controller.h"
16 #include "content/browser/tab_contents/navigation_entry.h"
17 #include "content/browser/tab_contents/tab_contents.h"
18 #include "content/browser/tab_contents/tab_contents_view.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 #include "third_party/skia/include/core/SkBitmap.h" 20 #include "third_party/skia/include/core/SkBitmap.h"
21 21
22 SidebarContainer::SidebarContainer(TabContents* tab, 22 SidebarContainer::SidebarContainer(TabContents* tab,
23 const std::string& content_id, 23 const std::string& content_id,
24 Delegate* delegate) 24 Delegate* delegate)
25 : tab_(tab), 25 : tab_(tab),
26 content_id_(content_id), 26 content_id_(content_id),
27 delegate_(delegate), 27 delegate_(delegate),
28 icon_(new SkBitmap), 28 icon_(new SkBitmap),
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 122
123 const Extension* SidebarContainer::GetExtension() const { 123 const Extension* SidebarContainer::GetExtension() const {
124 ExtensionService* service = 124 ExtensionService* service =
125 sidebar_contents_->profile()->GetExtensionService(); 125 sidebar_contents_->profile()->GetExtensionService();
126 if (!service) 126 if (!service)
127 return NULL; 127 return NULL;
128 return service->GetExtensionById( 128 return service->GetExtensionById(
129 extension_sidebar_utils::GetExtensionIdByContentId(content_id_), false); 129 extension_sidebar_utils::GetExtensionIdByContentId(content_id_), false);
130 } 130 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/sync/sync_setup_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698