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

Side by Side Diff: chrome/renderer/user_script_slave.h

Issue 21272: janitorial: browser_render_process_host header/lint cleanup. (try 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | chrome/renderer/user_script_slave.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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_
6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "base/shared_memory.h" 12 #include "base/shared_memory.h"
13 #include "base/string_piece.h" 13 #include "base/string_piece.h"
14 #include "base/string_util.h"
15 #include "chrome/common/extensions/user_script.h" 14 #include "chrome/common/extensions/user_script.h"
16 #include "chrome/common/stl_util-inl.h" 15 #include "chrome/common/stl_util-inl.h"
17 #include "testing/gtest/include/gtest/gtest_prod.h"
18 #include "webkit/glue/webframe.h"
19 16
17 class WebFrame;
20 18
21 // Manages installed UserScripts for a render process. 19 // Manages installed UserScripts for a render process.
22 class UserScriptSlave { 20 class UserScriptSlave {
23 public: 21 public:
24 UserScriptSlave(); 22 UserScriptSlave();
25 23
26 // Update the parsed scripts from shared memory. 24 // Update the parsed scripts from shared memory.
27 bool UpdateScripts(base::SharedMemoryHandle shared_memory); 25 bool UpdateScripts(base::SharedMemoryHandle shared_memory);
28 26
29 // Inject the appropriate scripts into a frame based on its URL. 27 // Inject the appropriate scripts into a frame based on its URL.
(...skipping 17 matching lines...) Expand all
47 45
48 // The line number of the first line of the user script among all of the 46 // The line number of the first line of the user script among all of the
49 // injected javascript. This is used to make reported errors correspond with 47 // injected javascript. This is used to make reported errors correspond with
50 // the proper line in the user script. 48 // the proper line in the user script.
51 int user_script_start_line_; 49 int user_script_start_line_;
52 50
53 DISALLOW_COPY_AND_ASSIGN(UserScriptSlave); 51 DISALLOW_COPY_AND_ASSIGN(UserScriptSlave);
54 }; 52 };
55 53
56 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ 54 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | chrome/renderer/user_script_slave.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698