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

Side by Side Diff: chrome/browser/tab_contents/background_contents.h

Issue 7283022: Make a clean interface for dialog callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // NotificationObserver 122 // NotificationObserver
123 virtual void Observe(NotificationType type, 123 virtual void Observe(NotificationType type,
124 const NotificationSource& source, 124 const NotificationSource& source,
125 const NotificationDetails& details); 125 const NotificationDetails& details);
126 126
127 // Overridden from JavaScriptDialogDelegate: 127 // Overridden from JavaScriptDialogDelegate:
128 virtual void OnDialogClosed(IPC::Message* reply_msg, 128 virtual void OnDialogClosed(IPC::Message* reply_msg,
129 bool success, 129 bool success,
130 const string16& user_input) OVERRIDE; 130 const string16& user_input) OVERRIDE;
131 virtual gfx::NativeWindow GetDialogRootWindow() OVERRIDE; 131 virtual gfx::NativeWindow GetDialogRootWindow() OVERRIDE;
132 virtual TabContents* AsTabContents() OVERRIDE;
133 virtual ExtensionHost* AsExtensionHost() OVERRIDE;
134 132
135 virtual void UpdateInspectorSetting(const std::string& key, 133 virtual void UpdateInspectorSetting(const std::string& key,
136 const std::string& value); 134 const std::string& value);
137 virtual void ClearInspectorSettings(); 135 virtual void ClearInspectorSettings();
138 136
139 // Helper to find the BackgroundContents that originated the given request. 137 // Helper to find the BackgroundContents that originated the given request.
140 // Can be NULL if the page has been closed or some other error occurs. 138 // Can be NULL if the page has been closed or some other error occurs.
141 // Should only be called from the UI thread, since it accesses 139 // Should only be called from the UI thread, since it accesses
142 // BackgroundContents. 140 // BackgroundContents.
143 static BackgroundContents* GetBackgroundContentsByID(int render_process_id, 141 static BackgroundContents* GetBackgroundContentsByID(int render_process_id,
(...skipping 27 matching lines...) Expand all
171 BackgroundContents* contents; 169 BackgroundContents* contents;
172 170
173 // The name of the parent frame for these contents. 171 // The name of the parent frame for these contents.
174 const string16& frame_name; 172 const string16& frame_name;
175 173
176 // The ID of the parent application (if any). 174 // The ID of the parent application (if any).
177 const string16& application_id; 175 const string16& application_id;
178 }; 176 };
179 177
180 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ 178 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698