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

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

Issue 493633003: Browser changes for wiring up RequestContentScript API to shared memory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 DOCUMENT_START, // After the documentElement is created, but before 57 DOCUMENT_START, // After the documentElement is created, but before
58 // anything else happens. 58 // anything else happens.
59 DOCUMENT_END, // After the entire document is parsed. Same as 59 DOCUMENT_END, // After the entire document is parsed. Same as
60 // DOMContentLoaded. 60 // DOMContentLoaded.
61 DOCUMENT_IDLE, // Sometime after DOMContentLoaded, as soon as the document 61 DOCUMENT_IDLE, // Sometime after DOMContentLoaded, as soon as the document
62 // is "idle". Currently this uses the simple heuristic of: 62 // is "idle". Currently this uses the simple heuristic of:
63 // min(DOM_CONTENT_LOADED + TIMEOUT, ONLOAD), but no 63 // min(DOM_CONTENT_LOADED + TIMEOUT, ONLOAD), but no
64 // particular injection point is guaranteed. 64 // particular injection point is guaranteed.
65 RUN_DEFERRED, // The user script's injection was deferred for permissions 65 RUN_DEFERRED, // The user script's injection was deferred for permissions
66 // reasons, and was executed at a later time. 66 // reasons, and was executed at a later time.
67 BROWSER_DRIVEN, // The user script will be injected when triggered by an
68 // IPC in the browser process.
67 RUN_LOCATION_LAST // Leave this as the last item. 69 RUN_LOCATION_LAST // Leave this as the last item.
68 }; 70 };
69 71
70 // Holds actual script file info. 72 // Holds actual script file info.
71 class File { 73 class File {
72 public: 74 public:
73 File(const base::FilePath& extension_root, 75 File(const base::FilePath& extension_root,
74 const base::FilePath& relative_path, 76 const base::FilePath& relative_path,
75 const GURL& url); 77 const GURL& url);
76 File(); 78 File();
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 }; 290 };
289 291
290 // For storing UserScripts with unique IDs in sets. 292 // For storing UserScripts with unique IDs in sets.
291 bool operator<(const UserScript& script1, const UserScript& script2); 293 bool operator<(const UserScript& script1, const UserScript& script2);
292 294
293 typedef std::vector<UserScript> UserScriptList; 295 typedef std::vector<UserScript> UserScriptList;
294 296
295 } // namespace extensions 297 } // namespace extensions
296 298
297 #endif // EXTENSIONS_COMMON_USER_SCRIPT_H_ 299 #endif // EXTENSIONS_COMMON_USER_SCRIPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698