| OLD | NEW | 
|   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 <string> |   9 #include <string> | 
|  10 #include <vector> |  10 #include <vector> | 
|  11  |  11  | 
|  12 #include "base/scoped_ptr.h" |  12 #include "base/scoped_ptr.h" | 
|  13 #include "base/shared_memory.h" |  13 #include "base/shared_memory.h" | 
|  14 #include "base/stl_util-inl.h" |  14 #include "base/stl_util-inl.h" | 
|  15 #include "base/string_piece.h" |  15 #include "base/string_piece.h" | 
|  16 #include "chrome/common/extensions/user_script.h" |  16 #include "chrome/common/extensions/user_script.h" | 
|  17 #include "webkit/api/public/WebScriptSource.h" |  17 #include "third_party/WebKit/WebKit/chromium/public/WebScriptSource.h" | 
|  18  |  18  | 
|  19 namespace WebKit { |  19 namespace WebKit { | 
|  20 class WebFrame; |  20 class WebFrame; | 
|  21 } |  21 } | 
|  22  |  22  | 
|  23 using WebKit::WebScriptSource; |  23 using WebKit::WebScriptSource; | 
|  24  |  24  | 
|  25 // Manages installed UserScripts for a render process. |  25 // Manages installed UserScripts for a render process. | 
|  26 class UserScriptSlave { |  26 class UserScriptSlave { | 
|  27  public: |  27  public: | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
|  47   std::vector<UserScript*> scripts_; |  47   std::vector<UserScript*> scripts_; | 
|  48   STLElementDeleter<std::vector<UserScript*> > script_deleter_; |  48   STLElementDeleter<std::vector<UserScript*> > script_deleter_; | 
|  49  |  49  | 
|  50   // Greasemonkey API source that is injected with the scripts. |  50   // Greasemonkey API source that is injected with the scripts. | 
|  51   base::StringPiece api_js_; |  51   base::StringPiece api_js_; | 
|  52  |  52  | 
|  53   DISALLOW_COPY_AND_ASSIGN(UserScriptSlave); |  53   DISALLOW_COPY_AND_ASSIGN(UserScriptSlave); | 
|  54 }; |  54 }; | 
|  55  |  55  | 
|  56 #endif  // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ |  56 #endif  // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_ | 
| OLD | NEW |