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

Side by Side Diff: extensions/browser/info_map.h

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: MakeShared goodness 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 EXTENSIONS_BROWSER_INFO_MAP_H_ 5 #ifndef EXTENSIONS_BROWSER_INFO_MAP_H_
6 #define EXTENSIONS_BROWSER_INFO_MAP_H_ 6 #define EXTENSIONS_BROWSER_INFO_MAP_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void RegisterExtensionProcess(const std::string& extension_id, 61 void RegisterExtensionProcess(const std::string& extension_id,
62 int process_id, 62 int process_id,
63 int site_instance_id); 63 int site_instance_id);
64 64
65 // Removes an entry from process_map_. 65 // Removes an entry from process_map_.
66 void UnregisterExtensionProcess(const std::string& extension_id, 66 void UnregisterExtensionProcess(const std::string& extension_id,
67 int process_id, 67 int process_id,
68 int site_instance_id); 68 int site_instance_id);
69 void UnregisterAllExtensionsInProcess(int process_id); 69 void UnregisterAllExtensionsInProcess(int process_id);
70 70
71 // Returns true if there is exists an extension with the same origin as
72 // |origin| in |process_id| with |permission|.
73 bool SecurityOriginHasAPIPermission(const GURL& origin,
74 int process_id,
75 extensions::APIPermission::ID permission)
76 const;
77
78 // Maps a |file_url| to a |file_path| on the local filesystem, including 71 // Maps a |file_url| to a |file_path| on the local filesystem, including
79 // resources in extensions. Returns true on success. See NaClBrowserDelegate 72 // resources in extensions. Returns true on success. See NaClBrowserDelegate
80 // for full details. 73 // for full details.
81 bool MapUrlToLocalFilePath(const GURL& file_url, 74 bool MapUrlToLocalFilePath(const GURL& file_url,
82 bool use_blocking_api, 75 bool use_blocking_api,
83 base::FilePath* file_path); 76 base::FilePath* file_path);
84 77
85 // Returns the IO thread QuotaService. Creates the instance on first call. 78 // Returns the IO thread QuotaService. Creates the instance on first call.
86 QuotaService* GetQuotaService(); 79 QuotaService* GetQuotaService();
87 80
(...skipping 28 matching lines...) Expand all
116 109
117 // Assignment of extensions to renderer processes. 110 // Assignment of extensions to renderer processes.
118 extensions::ProcessMap process_map_; 111 extensions::ProcessMap process_map_;
119 112
120 scoped_refptr<ContentVerifier> content_verifier_; 113 scoped_refptr<ContentVerifier> content_verifier_;
121 }; 114 };
122 115
123 } // namespace extensions 116 } // namespace extensions
124 117
125 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_ 118 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698