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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 2 Created 8 years, 7 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
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_tab_helper.h" 5 #include "chrome/browser/extensions/extension_tab_helper.h"
6 6
7 #include "chrome/browser/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/extensions/webstore_inline_installer.h" 8 #include "chrome/browser/extensions/webstore_inline_installer.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/sessions/restore_tab_helper.h" 10 #include "chrome/browser/sessions/restore_tab_helper.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/browser_list.h" 12 #include "chrome/browser/ui/browser_list.h"
13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
14 #include "chrome/common/chrome_notification_types.h" 14 #include "chrome/common/chrome_notification_types.h"
15 #include "chrome/common/extensions/extension_action.h" 15 #include "chrome/common/extensions/extension_action.h"
16 #include "chrome/common/extensions/extension_constants.h" 16 #include "chrome/common/extensions/extension_constants.h"
17 #include "chrome/common/extensions/extension_icon_set.h" 17 #include "chrome/common/extensions/extension_icon_set.h"
18 #include "chrome/common/extensions/extension_messages.h" 18 #include "chrome/common/extensions/extension_messages.h"
19 #include "chrome/common/extensions/extension_resource.h" 19 #include "chrome/common/extensions/extension_resource.h"
20 #include "content/public/browser/invalidate_type.h" 20 #include "content/public/browser/invalidate_type.h"
21 #include "content/public/browser/navigation_details.h" 21 #include "content/public/browser/navigation_details.h"
22 #include "content/public/browser/notification_service.h" 22 #include "content/public/browser/notification_service.h"
23 #include "content/public/browser/render_process_host.h" 23 #include "content/public/browser/render_process_host.h"
24 #include "content/public/browser/render_view_host.h" 24 #include "content/public/browser/render_view_host.h"
25 #include "content/public/browser/render_widget_host_view.h" 25 #include "content/public/browser/render_widget_host_view.h"
26 #include "content/public/browser/web_contents.h" 26 #include "content/public/browser/web_contents.h"
27 #include "ui/gfx/image/image.h" 27 #include "ui/gfx/image/image.h"
28 28
29 using content::WebContents; 29 using content::WebContents;
30 using extensions::Extension;
30 31
31 namespace { 32 namespace {
32 33
33 const char kPermissionError[] = "permission_error"; 34 const char kPermissionError[] = "permission_error";
34 35
35 } // namespace 36 } // namespace
36 37
37 ExtensionTabHelper::ExtensionTabHelper(TabContentsWrapper* wrapper) 38 ExtensionTabHelper::ExtensionTabHelper(TabContentsWrapper* wrapper)
38 : content::WebContentsObserver(wrapper->web_contents()), 39 : content::WebContentsObserver(wrapper->web_contents()),
39 delegate_(NULL), 40 delegate_(NULL),
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 void ExtensionTabHelper::OnInlineInstallFailure(int install_id, 342 void ExtensionTabHelper::OnInlineInstallFailure(int install_id,
342 int return_route_id, 343 int return_route_id,
343 const std::string& error) { 344 const std::string& error) {
344 Send(new ExtensionMsg_InlineWebstoreInstallResponse( 345 Send(new ExtensionMsg_InlineWebstoreInstallResponse(
345 return_route_id, install_id, false, error)); 346 return_route_id, install_id, false, error));
346 } 347 }
347 348
348 WebContents* ExtensionTabHelper::GetAssociatedWebContents() const { 349 WebContents* ExtensionTabHelper::GetAssociatedWebContents() const {
349 return web_contents(); 350 return web_contents();
350 } 351 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698