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

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

Issue 1062963006: Make WebUI webview content script work with incognito. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webui_api_4
Patch Set: Created 5 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 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 EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_ 5 #ifndef EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_
6 #define EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_ 6 #define EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Add |scripts| to the set of scripts managed by this loader. 56 // Add |scripts| to the set of scripts managed by this loader.
57 void AddScripts(const std::set<UserScript>& scripts); 57 void AddScripts(const std::set<UserScript>& scripts);
58 58
59 // Add |scripts| to the set of scripts managed by this loader. 59 // Add |scripts| to the set of scripts managed by this loader.
60 // The fetch of the content of the script starts URL request 60 // The fetch of the content of the script starts URL request
61 // to the associated render specified by 61 // to the associated render specified by
62 // |render_process_id, render_view_id|. 62 // |render_process_id, render_view_id|.
63 virtual void AddScripts(const std::set<UserScript>& scripts, 63 virtual void AddScripts(const std::set<UserScript>& scripts,
64 int render_process_id, 64 int render_process_id,
65 int render_view_id); 65 int render_view_id,
66 bool is_incognito);
66 67
67 // Remove |scripts| from the set of scripts managed by this loader. 68 // Remove |scripts| from the set of scripts managed by this loader.
68 void RemoveScripts(const std::set<UserScript>& scripts); 69 void RemoveScripts(const std::set<UserScript>& scripts);
69 70
70 // Clears the set of scripts managed by this loader. 71 // Clears the set of scripts managed by this loader.
71 void ClearScripts(); 72 void ClearScripts();
72 73
73 // Initiates procedure to start loading scripts on the file thread. 74 // Initiates procedure to start loading scripts on the file thread.
74 void StartLoad(); 75 void StartLoad();
75 76
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // ID of the host that owns these scripts, if any. This is only set to a 164 // ID of the host that owns these scripts, if any. This is only set to a
164 // non-empty value for declarative user script shared memory regions. 165 // non-empty value for declarative user script shared memory regions.
165 HostID host_id_; 166 HostID host_id_;
166 167
167 DISALLOW_COPY_AND_ASSIGN(UserScriptLoader); 168 DISALLOW_COPY_AND_ASSIGN(UserScriptLoader);
168 }; 169 };
169 170
170 } // namespace extensions 171 } // namespace extensions
171 172
172 #endif // EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_ 173 #endif // EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698