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..e45e9092a8ba98cc1ca5a2f5402140e9d8455dd4 |
--- /dev/null |
+++ b/chrome/browser/managed_mode/permission_request_creator.h |
@@ -0,0 +1,37 @@ |
+// 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" |
+#include "base/memory/scoped_ptr.h" |
+#include "base/strings/string16.h" |
+ |
+class GoogleServiceAuthError; |
+class OAuth2TokenService; |
+class Profile; |
+ |
+namespace net { |
+class URLRequestContextGetter; |
+} |
+ |
+class PermissionRequestCreator { |
+ public: |
+ typedef base::Callback<void(const GoogleServiceAuthError& /* error */)> |
+ PermissionRequestCallback; |
+ |
+ static scoped_ptr<PermissionRequestCreator> Create(Profile* profile); |
+ |
+ virtual ~PermissionRequestCreator(); |
+ |
+ virtual void CreatePermissionRequest( |
+ const std::string& url_requested, |
+ const PermissionRequestCallback& callback) = 0; |
+}; |
+ |
+#endif // CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_ |