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

Unified Diff: chrome/browser/extensions/api/media_galleries/media_galleries_api.h

Issue 174013009: Add end to end test for Media galleries scan API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/media_galleries/media_galleries_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/media_galleries/media_galleries_api.h
diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_api.h b/chrome/browser/extensions/api/media_galleries/media_galleries_api.h
index eff3e0c6a5774c180982a387d15e06fc78b152c7..4d7a15296841de2b038733bf5fcac1dfc440aa46 100644
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_api.h
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_api.h
@@ -11,6 +11,7 @@
#include <string>
#include <vector>
+#include "base/callback_forward.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
@@ -22,8 +23,16 @@
namespace MediaGalleries = extensions::api::media_galleries;
+class MediaGalleriesScanResultDialogController;
+
+namespace content {
+class WebContents;
+}
+
namespace extensions {
+class Extension;
+
// The profile-keyed service that manages the media galleries extension API.
// Created at the same time as the Profile. This is also the event router.
class MediaGalleriesEventRouter : public ProfileKeyedAPI,
@@ -205,6 +214,12 @@ class MediaGalleriesAddScanResultsFunction
virtual ~MediaGalleriesAddScanResultsFunction();
virtual bool RunImpl() OVERRIDE;
+ // Pulled out for testing.
+ virtual MediaGalleriesScanResultDialogController* MakeDialog(
+ content::WebContents* web_contents,
+ const extensions::Extension& extension,
+ const base::Closure& on_finish);
+
private:
// Bottom half for RunImpl, invoked after the preferences is initialized.
void OnPreferencesInit();
« no previous file with comments | « no previous file | chrome/browser/extensions/api/media_galleries/media_galleries_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698