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

Unified Diff: chrome/browser/intents/native_services.h

Issue 11071005: Add native file picker impl using SelectFileDialog. (Closed) Base URL: http://git.chromium.org/chromium/src.git@filePicker
Patch Set: Remove ifdefs for VIEWS toolkit. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/intents/native_services.h
diff --git a/chrome/browser/intents/native_services.h b/chrome/browser/intents/native_services.h
index 12846a163955f43be2468d4623f3960a7bf6ffb4..418edffedeab003f85798abfb65cd32cb8d071be 100644
--- a/chrome/browser/intents/native_services.h
+++ b/chrome/browser/intents/native_services.h
@@ -12,6 +12,7 @@
class GURL;
namespace content {
+class WebContents;
class WebIntentsDispatcher;
}
@@ -29,7 +30,6 @@ extern const char kNativeFilePickerUrl[];
typedef std::vector<webkit_glue::WebIntentServiceData> IntentServiceList;
-#if defined(TOOLKIT_VIEWS)
// Factory capable of producing a file picker NativeService.
class FilePickerFactory {
public:
@@ -38,10 +38,11 @@ class FilePickerFactory {
// Returns a new instance of FilePickerService.
static IntentServiceHost* CreateServiceInstance(
+ content::WebContents* web_contents,
const webkit_glue::WebIntentData& intent);
+
DISALLOW_COPY_AND_ASSIGN(FilePickerFactory);
};
-#endif
class NativeServiceRegistry {
public:
@@ -50,6 +51,7 @@ class NativeServiceRegistry {
void GetSupportedServices(
const string16& action,
IntentServiceList* services);
+
DISALLOW_COPY_AND_ASSIGN(NativeServiceRegistry);
};
@@ -60,7 +62,9 @@ class NativeServiceFactory {
// |intent|.
IntentServiceHost* CreateServiceInstance(
const GURL& url,
- const webkit_glue::WebIntentData& intent);
+ const webkit_glue::WebIntentData& intent,
+ content::WebContents* web_contents);
+
DISALLOW_COPY_AND_ASSIGN(NativeServiceFactory);
};
« no previous file with comments | « no previous file | chrome/browser/intents/native_services.cc » ('j') | chrome/browser/ui/intents/native_file_picker_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698