OLD | NEW |
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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 content::WebContents* new_contents, | 67 content::WebContents* new_contents, |
68 WindowOpenDisposition disposition, | 68 WindowOpenDisposition disposition, |
69 const gfx::Rect& initial_pos, | 69 const gfx::Rect& initial_pos, |
70 bool user_gesture, | 70 bool user_gesture, |
71 bool* was_blocked) OVERRIDE; | 71 bool* was_blocked) OVERRIDE; |
72 | 72 |
73 // content::WebContentsObserver implementation: | 73 // content::WebContentsObserver implementation: |
74 virtual void RenderViewCreated( | 74 virtual void RenderViewCreated( |
75 content::RenderViewHost* render_view_host) OVERRIDE; | 75 content::RenderViewHost* render_view_host) OVERRIDE; |
76 virtual void RenderViewReady() OVERRIDE; | 76 virtual void RenderViewReady() OVERRIDE; |
77 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 77 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
78 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 78 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
79 | 79 |
80 // Message handlers | 80 // Message handlers |
81 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 81 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
82 | 82 |
83 // Called to send an event that the balloon has been disconnected from | 83 // Called to send an event that the balloon has been disconnected from |
84 // a renderer (if should_notify_on_disconnect_ is true). | 84 // a renderer (if should_notify_on_disconnect_ is true). |
85 void NotifyDisconnect(); | 85 void NotifyDisconnect(); |
86 | 86 |
87 // Non-owned pointer to the associated balloon. | 87 // Non-owned pointer to the associated balloon. |
(...skipping 10 matching lines...) Expand all Loading... |
98 // Site instance for the balloon/profile, to be used for opening new links. | 98 // Site instance for the balloon/profile, to be used for opening new links. |
99 scoped_refptr<content::SiteInstance> site_instance_; | 99 scoped_refptr<content::SiteInstance> site_instance_; |
100 | 100 |
101 // A flag to enable Web UI. | 101 // A flag to enable Web UI. |
102 bool enable_web_ui_; | 102 bool enable_web_ui_; |
103 | 103 |
104 ExtensionFunctionDispatcher extension_function_dispatcher_; | 104 ExtensionFunctionDispatcher extension_function_dispatcher_; |
105 }; | 105 }; |
106 | 106 |
107 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 107 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
OLD | NEW |