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

Side by Side Diff: extensions/common/user_script.h

Issue 420543002: Declarative content scripts: Browser-side: per-extension shared memory regions (lazily loaded) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor relationship between UserScriptMaster and its subclasses Created 6 years, 4 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_COMMON_USER_SCRIPT_H_ 5 #ifndef EXTENSIONS_COMMON_USER_SCRIPT_H_
6 #define EXTENSIONS_COMMON_USER_SCRIPT_H_ 6 #define EXTENSIONS_COMMON_USER_SCRIPT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 bool match_all_frames_; 277 bool match_all_frames_;
278 278
279 // Whether the user script should run in about:blank and about:srcdoc as well. 279 // Whether the user script should run in about:blank and about:srcdoc as well.
280 // Defaults to false. 280 // Defaults to false.
281 bool match_about_blank_; 281 bool match_about_blank_;
282 282
283 // True if the script should be injected into an incognito tab. 283 // True if the script should be injected into an incognito tab.
284 bool incognito_enabled_; 284 bool incognito_enabled_;
285 }; 285 };
286 286
287 // For storing UserScripts with unique IDs in sets.
288 bool operator<(const UserScript& script1, const UserScript& script2);
289
287 typedef std::vector<UserScript> UserScriptList; 290 typedef std::vector<UserScript> UserScriptList;
288 291
289 } // namespace extensions 292 } // namespace extensions
290 293
291 #endif // EXTENSIONS_COMMON_USER_SCRIPT_H_ 294 #endif // EXTENSIONS_COMMON_USER_SCRIPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698