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

Side by Side Diff: headless/lib/browser/headless_browser_context_impl.h

Issue 2771993003: Added headless permission manager. This permissions manager simply acks all permission requests wit… (Closed)
Patch Set: Added headless permission manager. This permissions manager simply acks all permission requests wit… Created 3 years, 8 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
« no previous file with comments | « headless/BUILD.gn ('k') | headless/lib/browser/headless_browser_context_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void InitWhileIOAllowed(); 91 void InitWhileIOAllowed();
92 92
93 HeadlessBrowserImpl* browser_; // Not owned. 93 HeadlessBrowserImpl* browser_; // Not owned.
94 std::unique_ptr<HeadlessBrowserContextOptions> context_options_; 94 std::unique_ptr<HeadlessBrowserContextOptions> context_options_;
95 std::unique_ptr<HeadlessResourceContext> resource_context_; 95 std::unique_ptr<HeadlessResourceContext> resource_context_;
96 base::FilePath path_; 96 base::FilePath path_;
97 97
98 std::unordered_map<std::string, std::unique_ptr<HeadlessWebContents>> 98 std::unordered_map<std::string, std::unique_ptr<HeadlessWebContents>>
99 web_contents_map_; 99 web_contents_map_;
100 100
101 std::unique_ptr<content::PermissionManager> permission_manager_;
102
101 std::string id_; 103 std::string id_;
102 104
103 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextImpl); 105 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextImpl);
104 }; 106 };
105 107
106 } // namespace headless 108 } // namespace headless
107 109
108 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_ 110 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_IMPL_H_
OLDNEW
« no previous file with comments | « headless/BUILD.gn ('k') | headless/lib/browser/headless_browser_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698