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

Side by Side Diff: trunk/src/chrome/browser/extensions/api/tabs/ash_panel_contents.h

Issue 164613002: Revert 251094 "Revert 250826 "Remove Profile dependency from app..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_API_TABS_ASH_PANEL_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_ASH_PANEL_CONTENTS_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_ASH_PANEL_CONTENTS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_ASH_PANEL_CONTENTS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "apps/shell_window.h" 10 #include "apps/shell_window.h"
(...skipping 21 matching lines...) Expand all
32 // extensions API. 32 // extensions API.
33 class AshPanelContents : public apps::ShellWindowContents, 33 class AshPanelContents : public apps::ShellWindowContents,
34 public content::WebContentsObserver, 34 public content::WebContentsObserver,
35 public LauncherFaviconLoader::Delegate, 35 public LauncherFaviconLoader::Delegate,
36 public ExtensionFunctionDispatcher::Delegate { 36 public ExtensionFunctionDispatcher::Delegate {
37 public: 37 public:
38 explicit AshPanelContents(apps::ShellWindow* host); 38 explicit AshPanelContents(apps::ShellWindow* host);
39 virtual ~AshPanelContents(); 39 virtual ~AshPanelContents();
40 40
41 // apps::ShellWindowContents 41 // apps::ShellWindowContents
42 virtual void Initialize(Profile* profile, const GURL& url) OVERRIDE; 42 virtual void Initialize(content::BrowserContext* context,
43 const GURL& url) OVERRIDE;
43 virtual void LoadContents(int32 creator_process_id) OVERRIDE; 44 virtual void LoadContents(int32 creator_process_id) OVERRIDE;
44 virtual void NativeWindowChanged(apps::NativeAppWindow* native_app_window) 45 virtual void NativeWindowChanged(apps::NativeAppWindow* native_app_window)
45 OVERRIDE; 46 OVERRIDE;
46 virtual void NativeWindowClosed() OVERRIDE; 47 virtual void NativeWindowClosed() OVERRIDE;
47 virtual content::WebContents* GetWebContents() const OVERRIDE; 48 virtual content::WebContents* GetWebContents() const OVERRIDE;
48 49
49 // LauncherFaviconLoader::Delegate overrides: 50 // LauncherFaviconLoader::Delegate overrides:
50 virtual void FaviconUpdated() OVERRIDE; 51 virtual void FaviconUpdated() OVERRIDE;
51 52
52 // ExtensionFunctionDispatcher::Delegate 53 // ExtensionFunctionDispatcher::Delegate
(...skipping 15 matching lines...) Expand all
68 GURL url_; 69 GURL url_;
69 scoped_ptr<content::WebContents> web_contents_; 70 scoped_ptr<content::WebContents> web_contents_;
70 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; 71 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
71 scoped_ptr<AshPanelWindowController> window_controller_; 72 scoped_ptr<AshPanelWindowController> window_controller_;
72 scoped_ptr<LauncherFaviconLoader> launcher_favicon_loader_; 73 scoped_ptr<LauncherFaviconLoader> launcher_favicon_loader_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(AshPanelContents); 75 DISALLOW_COPY_AND_ASSIGN(AshPanelContents);
75 }; 76 };
76 77
77 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_ASH_PANEL_CONTENTS_H_ 78 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_ASH_PANEL_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698