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

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

Issue 10868116: Pass result of blockage across content API when new tab blocked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 private: 60 private:
61 // content::WebContentsDelegate implementation: 61 // content::WebContentsDelegate implementation:
62 virtual void CloseContents(content::WebContents* source) OVERRIDE; 62 virtual void CloseContents(content::WebContents* source) OVERRIDE;
63 virtual void HandleMouseDown() OVERRIDE; 63 virtual void HandleMouseDown() OVERRIDE;
64 virtual void ResizeDueToAutoResize(content::WebContents* source, 64 virtual void ResizeDueToAutoResize(content::WebContents* source,
65 const gfx::Size& pref_size) OVERRIDE; 65 const gfx::Size& pref_size) OVERRIDE;
66 virtual void AddNewContents(content::WebContents* source, 66 virtual void AddNewContents(content::WebContents* source,
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) OVERRIDE; 70 bool user_gesture,
71 bool* was_blocked) OVERRIDE;
71 72
72 // content::WebContentsObserver implementation: 73 // content::WebContentsObserver implementation:
73 virtual void RenderViewCreated( 74 virtual void RenderViewCreated(
74 content::RenderViewHost* render_view_host) OVERRIDE; 75 content::RenderViewHost* render_view_host) OVERRIDE;
75 virtual void RenderViewReady() OVERRIDE; 76 virtual void RenderViewReady() OVERRIDE;
76 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; 77 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
77 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 78 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
78 79
79 // Message handlers 80 // Message handlers
80 void OnRequest(const ExtensionHostMsg_Request_Params& params); 81 void OnRequest(const ExtensionHostMsg_Request_Params& params);
(...skipping 16 matching lines...) Expand all
97 // 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.
98 scoped_refptr<content::SiteInstance> site_instance_; 99 scoped_refptr<content::SiteInstance> site_instance_;
99 100
100 // A flag to enable Web UI. 101 // A flag to enable Web UI.
101 bool enable_web_ui_; 102 bool enable_web_ui_;
102 103
103 ExtensionFunctionDispatcher extension_function_dispatcher_; 104 ExtensionFunctionDispatcher extension_function_dispatcher_;
104 }; 105 };
105 106
106 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 107 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698