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

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.h

Issue 7715037: Web Intent Picker UI (implemented as a constrained dialog, linux only) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: linux_views/chromeos fix Created 9 years, 4 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_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class PasswordManager; 52 class PasswordManager;
53 class PasswordManagerDelegate; 53 class PasswordManagerDelegate;
54 class PluginObserver; 54 class PluginObserver;
55 class RestoreTabHelper; 55 class RestoreTabHelper;
56 class SearchEngineTabHelper; 56 class SearchEngineTabHelper;
57 class TabContentsSSLHelper; 57 class TabContentsSSLHelper;
58 class TabContentsWrapperDelegate; 58 class TabContentsWrapperDelegate;
59 class TabSpecificContentSettings; 59 class TabSpecificContentSettings;
60 class ThumbnailGenerator; 60 class ThumbnailGenerator;
61 class TranslateTabHelper; 61 class TranslateTabHelper;
62 class WebIntentPickerController;
62 63
63 namespace safe_browsing { 64 namespace safe_browsing {
64 class ClientSideDetectionHost; 65 class ClientSideDetectionHost;
65 } 66 }
66 67
67 // Wraps TabContents and all of its supporting objects in order to control 68 // Wraps TabContents and all of its supporting objects in order to control
68 // their ownership and lifetime, while allowing TabContents to remain generic 69 // their ownership and lifetime, while allowing TabContents to remain generic
69 // and re-usable in other projects. 70 // and re-usable in other projects.
70 // TODO(pinkerton): Eventually, this class will become TabContents as far as 71 // TODO(pinkerton): Eventually, this class will become TabContents as far as
71 // the browser front-end is concerned, and the current TabContents will be 72 // the browser front-end is concerned, and the current TabContents will be
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 } 189 }
189 190
190 RestoreTabHelper* restore_tab_helper() { 191 RestoreTabHelper* restore_tab_helper() {
191 return restore_tab_helper_.get(); 192 return restore_tab_helper_.get();
192 } 193 }
193 194
194 const RestoreTabHelper* restore_tab_helper() const { 195 const RestoreTabHelper* restore_tab_helper() const {
195 return restore_tab_helper_.get(); 196 return restore_tab_helper_.get();
196 } 197 }
197 198
199 WebIntentPickerController* web_intent_picker_controller() {
200 return web_intent_picker_controller_.get();
201 }
202
198 // Overrides ----------------------------------------------------------------- 203 // Overrides -----------------------------------------------------------------
199 204
200 // TabContentsObserver overrides: 205 // TabContentsObserver overrides:
201 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; 206 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
202 virtual void RenderViewGone() OVERRIDE; 207 virtual void RenderViewGone() OVERRIDE;
203 virtual void DidBecomeSelected() OVERRIDE; 208 virtual void DidBecomeSelected() OVERRIDE;
204 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 209 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
205 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; 210 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE;
206 211
207 // NotificationObserver overrides: 212 // NotificationObserver overrides:
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 scoped_ptr<RestoreTabHelper> restore_tab_helper_; 325 scoped_ptr<RestoreTabHelper> restore_tab_helper_;
321 326
322 // PasswordManager and its delegate. The delegate must outlive the manager, 327 // PasswordManager and its delegate. The delegate must outlive the manager,
323 // per documentation in password_manager.h. 328 // per documentation in password_manager.h.
324 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_; 329 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_;
325 scoped_ptr<PasswordManager> password_manager_; 330 scoped_ptr<PasswordManager> password_manager_;
326 331
327 // Handles print job for this contents. 332 // Handles print job for this contents.
328 scoped_ptr<printing::PrintViewManager> print_view_manager_; 333 scoped_ptr<printing::PrintViewManager> print_view_manager_;
329 334
335 // Handles displaying a web intents picker to the user.
336 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_;
337
330 // Handles IPCs related to SafeBrowsing client-side phishing detection. 338 // Handles IPCs related to SafeBrowsing client-side phishing detection.
331 scoped_ptr<safe_browsing::ClientSideDetectionHost> 339 scoped_ptr<safe_browsing::ClientSideDetectionHost>
332 safebrowsing_detection_host_; 340 safebrowsing_detection_host_;
333 341
334 scoped_ptr<SearchEngineTabHelper> search_engine_tab_helper_; 342 scoped_ptr<SearchEngineTabHelper> search_engine_tab_helper_;
335 scoped_ptr<TabContentsSSLHelper> ssl_helper_; 343 scoped_ptr<TabContentsSSLHelper> ssl_helper_;
336 344
337 // The TabSpecificContentSettings object is used to query the blocked content 345 // The TabSpecificContentSettings object is used to query the blocked content
338 // state by various UI elements. 346 // state by various UI elements.
339 scoped_ptr<TabSpecificContentSettings> content_settings_; 347 scoped_ptr<TabSpecificContentSettings> content_settings_;
(...skipping 20 matching lines...) Expand all
360 368
361 // The supporting objects need to outlive the TabContents dtor (as they may 369 // The supporting objects need to outlive the TabContents dtor (as they may
362 // be called upon during its execution). As a result, this must come last 370 // be called upon during its execution). As a result, this must come last
363 // in the list. 371 // in the list.
364 scoped_ptr<TabContents> tab_contents_; 372 scoped_ptr<TabContents> tab_contents_;
365 373
366 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); 374 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper);
367 }; 375 };
368 376
369 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 377 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_factory.h ('k') | chrome/browser/ui/tab_contents/tab_contents_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698