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

Unified Diff: chrome/browser/managed_mode/permission_request_creator.h

Issue 288913003: Add permission request creator class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and move scoped_ptr include to subclass header files. Created 6 years, 7 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/managed_mode/permission_request_creator.h
diff --git a/chrome/browser/managed_mode/permission_request_creator.h b/chrome/browser/managed_mode/permission_request_creator.h
new file mode 100644
index 0000000000000000000000000000000000000000..01ab122e97bac39e7d20e9d09d7c74b8855cd549
--- /dev/null
+++ b/chrome/browser/managed_mode/permission_request_creator.h
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_
+#define CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_
+
+#include <string>
+
+#include "base/callback_forward.h"
+#include "base/compiler_specific.h"
+
+class GoogleServiceAuthError;
+
+class PermissionRequestCreator {
+ public:
+ typedef base::Callback<void(const GoogleServiceAuthError& /* error */)>
+ PermissionRequestCallback;
+
+ virtual ~PermissionRequestCreator() {}
+
+ virtual void CreatePermissionRequest(
+ const std::string& url_requested,
+ const PermissionRequestCallback& callback) = 0;
+};
+
+#endif // CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_

Powered by Google App Engine
This is Rietveld 408576698