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

Side by Side Diff: chrome/browser/notifications/balloon_host.h

Issue 10021071: Remove Browser dependency in ExtensionFunctionDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | 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_NOTIFICATIONS_BALLOON_HOST_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 explicit BalloonHost(Balloon* balloon); 31 explicit BalloonHost(Balloon* balloon);
32 32
33 // Initialize the view. 33 // Initialize the view.
34 void Init(); 34 void Init();
35 35
36 // Stops showing the balloon. 36 // Stops showing the balloon.
37 void Shutdown(); 37 void Shutdown();
38 38
39 // ExtensionFunctionDispatcher::Delegate overrides. 39 // ExtensionFunctionDispatcher::Delegate overrides.
40 virtual Browser* GetBrowser() OVERRIDE; 40 virtual ExtensionWindowController* GetExtensionWindowController()
sky 2012/05/03 21:04:47 nit: In this case wrap the function name to the ne
41 const OVERRIDE;
41 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; 42 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE;
42 43
43 const string16& GetSource() const; 44 const string16& GetSource() const;
44 45
45 content::WebContents* web_contents() const { return web_contents_.get(); } 46 content::WebContents* web_contents() const { return web_contents_.get(); }
46 47
47 // Enable Web UI. This has to be called before renderer is created. 48 // Enable Web UI. This has to be called before renderer is created.
48 void EnableWebUI(); 49 void EnableWebUI();
49 50
50 // Returns whether the associated render view is ready. Used only for testing. 51 // Returns whether the associated render view is ready. Used only for testing.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Site instance for the balloon/profile, to be used for opening new links. 99 // Site instance for the balloon/profile, to be used for opening new links.
99 scoped_refptr<content::SiteInstance> site_instance_; 100 scoped_refptr<content::SiteInstance> site_instance_;
100 101
101 // A flag to enable Web UI. 102 // A flag to enable Web UI.
102 bool enable_web_ui_; 103 bool enable_web_ui_;
103 104
104 ExtensionFunctionDispatcher extension_function_dispatcher_; 105 ExtensionFunctionDispatcher extension_function_dispatcher_;
105 }; 106 };
106 107
107 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 108 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698