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

Side by Side Diff: chrome/browser/supervised_user/child_accounts/permission_request_creator_apiary.h

Issue 2004043002: Supervised Users Initiated Installs v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kid_initiated_install
Patch Set: Response to code review by Marc Created 4 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SUPERVISED_USER_CHILD_ACCOUNTS_PERMISSION_REQUEST_CREATOR _APIARY_H_ 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_PERMISSION_REQUEST_CREATOR _APIARY_H_
6 #define CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_PERMISSION_REQUEST_CREATOR _APIARY_H_ 6 #define CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_PERMISSION_REQUEST_CREATOR _APIARY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 net::URLRequestContextGetter* context); 36 net::URLRequestContextGetter* context);
37 ~PermissionRequestCreatorApiary() override; 37 ~PermissionRequestCreatorApiary() override;
38 38
39 static std::unique_ptr<PermissionRequestCreator> CreateWithProfile( 39 static std::unique_ptr<PermissionRequestCreator> CreateWithProfile(
40 Profile* profile); 40 Profile* profile);
41 41
42 // PermissionRequestCreator implementation: 42 // PermissionRequestCreator implementation:
43 bool IsEnabled() const override; 43 bool IsEnabled() const override;
44 void CreateURLAccessRequest(const GURL& url_requested, 44 void CreateURLAccessRequest(const GURL& url_requested,
45 const SuccessCallback& callback) override; 45 const SuccessCallback& callback) override;
46 void CreateExtensionInstallRequest(const std::string& id,
47 const SuccessCallback& callback) override;
46 void CreateExtensionUpdateRequest(const std::string& id, 48 void CreateExtensionUpdateRequest(const std::string& id,
47 const SuccessCallback& callback) override; 49 const SuccessCallback& callback) override;
48 50
49 void set_url_fetcher_id_for_testing(int id) { url_fetcher_id_ = id; } 51 void set_url_fetcher_id_for_testing(int id) { url_fetcher_id_ = id; }
50 52
51 private: 53 private:
52 struct Request; 54 struct Request;
53 using RequestIterator = ScopedVector<Request>::iterator; 55 using RequestIterator = ScopedVector<Request>::iterator;
54 56
55 // OAuth2TokenService::Consumer implementation: 57 // OAuth2TokenService::Consumer implementation:
(...skipping 23 matching lines...) Expand all
79 std::string account_id_; 81 std::string account_id_;
80 net::URLRequestContextGetter* context_; 82 net::URLRequestContextGetter* context_;
81 int url_fetcher_id_; 83 int url_fetcher_id_;
82 84
83 ScopedVector<Request> requests_; 85 ScopedVector<Request> requests_;
84 86
85 DISALLOW_COPY_AND_ASSIGN(PermissionRequestCreatorApiary); 87 DISALLOW_COPY_AND_ASSIGN(PermissionRequestCreatorApiary);
86 }; 88 };
87 89
88 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_PERMISSION_REQUEST_CREA TOR_APIARY_H_ 90 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_PERMISSION_REQUEST_CREA TOR_APIARY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698