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

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

Issue 9433044: Fix extensions compile issues for Android on sync_unit_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 10 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/perftimer.h" 14 #include "base/perftimer.h"
15 #include "chrome/browser/extensions/extension_function_dispatcher.h" 15 #include "chrome/browser/extensions/extension_function_dispatcher.h"
16 #include "content/public/browser/javascript_dialogs.h" 16 #include "content/public/browser/javascript_dialogs.h"
17 #include "content/public/browser/notification_observer.h" 17 #include "content/public/browser/notification_observer.h"
18 #include "content/public/browser/notification_registrar.h" 18 #include "content/public/browser/notification_registrar.h"
19 #include "content/public/browser/web_contents_delegate.h" 19 #include "content/public/browser/web_contents_delegate.h"
20 #include "content/public/browser/web_contents_observer.h" 20 #include "content/public/browser/web_contents_observer.h"
21 #include "content/public/common/view_type.h" 21 #include "content/public/common/view_type.h"
22 22
23 #if defined(TOOLKIT_VIEWS) 23 #if defined(TOOLKIT_VIEWS)
24 #include "chrome/browser/ui/views/extensions/extension_view.h" 24 #include "chrome/browser/ui/views/extensions/extension_view.h"
25 #elif defined(OS_MACOSX) 25 #elif defined(OS_MACOSX)
26 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" 26 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h"
27 #elif defined(TOOLKIT_GTK) 27 #elif defined(TOOLKIT_GTK)
28 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" 28 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h"
29 #elif defined(OS_ANDROID)
30 #include "chrome/browser/ui/android/extensions/extension_view_android.h"
29 #endif 31 #endif
30 32
31 class Browser; 33 class Browser;
32 class Extension; 34 class Extension;
33 class PrefsTabHelper; 35 class PrefsTabHelper;
34 struct WebPreferences; 36 struct WebPreferences;
35 37
36 namespace content { 38 namespace content {
37 class RenderProcessHost; 39 class RenderProcessHost;
38 class RenderWidgetHostView; 40 class RenderWidgetHostView;
(...skipping 12 matching lines...) Expand all
51 class ProcessCreationQueue; 53 class ProcessCreationQueue;
52 54
53 #if defined(TOOLKIT_VIEWS) 55 #if defined(TOOLKIT_VIEWS)
54 typedef ExtensionView PlatformExtensionView; 56 typedef ExtensionView PlatformExtensionView;
55 #elif defined(OS_MACOSX) 57 #elif defined(OS_MACOSX)
56 typedef ExtensionViewMac PlatformExtensionView; 58 typedef ExtensionViewMac PlatformExtensionView;
57 #elif defined(TOOLKIT_GTK) 59 #elif defined(TOOLKIT_GTK)
58 typedef ExtensionViewGtk PlatformExtensionView; 60 typedef ExtensionViewGtk PlatformExtensionView;
59 #elif defined(OS_ANDROID) 61 #elif defined(OS_ANDROID)
60 // Android does not support extensions. 62 // Android does not support extensions.
61 typedef void* PlatformExtensionView; 63 typedef ExtensionViewAndroid PlatformExtensionView;
62 #endif 64 #endif
63 65
64 ExtensionHost(const Extension* extension, 66 ExtensionHost(const Extension* extension,
65 content::SiteInstance* site_instance, 67 content::SiteInstance* site_instance,
66 const GURL& url, content::ViewType host_type); 68 const GURL& url, content::ViewType host_type);
67 virtual ~ExtensionHost(); 69 virtual ~ExtensionHost();
68 70
69 #if defined(TOOLKIT_VIEWS) 71 #if defined(TOOLKIT_VIEWS)
70 void set_view(PlatformExtensionView* view) { view_.reset(view); } 72 void set_view(PlatformExtensionView* view) { view_.reset(view); }
71 #endif 73 #endif
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // The relevant WebContents associated with this ExtensionHost, if any. 240 // The relevant WebContents associated with this ExtensionHost, if any.
239 content::WebContents* associated_web_contents_; 241 content::WebContents* associated_web_contents_;
240 242
241 // Used to measure how long it's been since the host was created. 243 // Used to measure how long it's been since the host was created.
242 PerfTimer since_created_; 244 PerfTimer since_created_;
243 245
244 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 246 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
245 }; 247 };
246 248
247 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 249 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/app_notification_manager.cc ('k') | chrome/browser/extensions/extension_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698