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

Side by Side Diff: chrome/browser/ui/intents/web_intent_picker_controller.h

Issue 10855066: intents: Remove the disposition enum in web intents model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 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) 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_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "chrome/browser/extensions/webstore_installer.h" 15 #include "chrome/browser/extensions/webstore_installer.h"
16 #include "chrome/browser/favicon/favicon_service.h" 16 #include "chrome/browser/favicon/favicon_service.h"
17 #include "chrome/browser/intents/cws_intents_registry.h" 17 #include "chrome/browser/intents/cws_intents_registry.h"
18 #include "chrome/browser/intents/web_intents_registry.h" 18 #include "chrome/browser/intents/web_intents_registry.h"
19 #include "chrome/browser/ui/intents/web_intent_picker_delegate.h" 19 #include "chrome/browser/ui/intents/web_intent_picker_delegate.h"
20 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
21 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
22 #include "webkit/glue/web_intent_data.h" 22 #include "webkit/glue/web_intent_data.h"
23 #include "webkit/glue/web_intent_reply_data.h" 23 #include "webkit/glue/web_intent_reply_data.h"
24 24
groby-ooo-7-16 2012/08/10 18:36:31 #include "webkit/glue/web_intent_service_data.h" -
Greg Billock 2012/08/15 18:16:37 Moved from .cc file to here.
25 class Browser; 25 class Browser;
26 struct DefaultWebIntentService; 26 struct DefaultWebIntentService;
27 class GURL; 27 class GURL;
28 class TabContents; 28 class TabContents;
29 class WebIntentPicker; 29 class WebIntentPicker;
30 class WebIntentPickerModel; 30 class WebIntentPickerModel;
31 31
32 namespace content { 32 namespace content {
33 class WebContents; 33 class WebContents;
34 class WebIntentsDispatcher; 34 class WebIntentsDispatcher;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // that the source WebContents has been destroyed. 66 // that the source WebContents has been destroyed.
67 void SourceWebContentsDestroyed(content::WebContents* source); 67 void SourceWebContentsDestroyed(content::WebContents* source);
68 68
69 protected: 69 protected:
70 // content::NotificationObserver implementation. 70 // content::NotificationObserver implementation.
71 virtual void Observe(int type, 71 virtual void Observe(int type,
72 const content::NotificationSource& source, 72 const content::NotificationSource& source,
73 const content::NotificationDetails& details) OVERRIDE; 73 const content::NotificationDetails& details) OVERRIDE;
74 74
75 // WebIntentPickerDelegate implementation. 75 // WebIntentPickerDelegate implementation.
76 virtual void OnServiceChosen(const GURL& url, 76 virtual void OnServiceChosen(
77 Disposition disposition) OVERRIDE; 77 const GURL& url,
78 webkit_glue::WebIntentServiceData::Disposition disposition) OVERRIDE;
78 virtual void OnInlineDispositionWebContentsCreated( 79 virtual void OnInlineDispositionWebContentsCreated(
79 content::WebContents* web_contents) OVERRIDE; 80 content::WebContents* web_contents) OVERRIDE;
80 virtual void OnExtensionInstallRequested(const std::string& id) OVERRIDE; 81 virtual void OnExtensionInstallRequested(const std::string& id) OVERRIDE;
81 virtual void OnExtensionLinkClicked(const std::string& id) OVERRIDE; 82 virtual void OnExtensionLinkClicked(const std::string& id) OVERRIDE;
82 virtual void OnSuggestionsLinkClicked() OVERRIDE; 83 virtual void OnSuggestionsLinkClicked() OVERRIDE;
83 virtual void OnPickerClosed() OVERRIDE; 84 virtual void OnPickerClosed() OVERRIDE;
84 virtual void OnChooseAnotherService() OVERRIDE; 85 virtual void OnChooseAnotherService() OVERRIDE;
85 virtual void OnClosing() OVERRIDE; 86 virtual void OnClosing() OVERRIDE;
86 87
87 // extensions::WebstoreInstaller::Delegate implementation. 88 // extensions::WebstoreInstaller::Delegate implementation.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 227
227 // Request consumer used when asynchronously loading favicons. 228 // Request consumer used when asynchronously loading favicons.
228 CancelableRequestConsumerTSimple<size_t> favicon_consumer_; 229 CancelableRequestConsumerTSimple<size_t> favicon_consumer_;
229 230
230 base::WeakPtrFactory<WebIntentPickerController> weak_ptr_factory_; 231 base::WeakPtrFactory<WebIntentPickerController> weak_ptr_factory_;
231 232
232 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController); 233 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController);
233 }; 234 };
234 235
235 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ 236 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698