diff options
-rw-r--r-- | chrome/browser/extensions/user_script_master.h | 3 | ||||
-rw-r--r-- | chrome/common/jstemplate_builder.h | 9 | ||||
-rw-r--r-- | chrome/test/v8_unit_test.h | 3 |
3 files changed, 9 insertions, 6 deletions
diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h index b4932f2..6a9a425 100644 --- a/chrome/browser/extensions/user_script_master.h +++ b/chrome/browser/extensions/user_script_master.h @@ -13,11 +13,12 @@ #include "base/process.h" #include "base/scoped_ptr.h" #include "base/shared_memory.h" -#include "base/string_piece.h" #include "chrome/common/extensions/user_script.h" #include "googleurl/src/gurl.h" #include "testing/gtest/include/gtest/gtest_prod.h" +class StringPiece; + // Manages a segment of shared memory that contains the user scripts the user // has installed. Lives on the UI thread. class UserScriptMaster : public base::RefCounted<UserScriptMaster>, diff --git a/chrome/common/jstemplate_builder.h b/chrome/common/jstemplate_builder.h index 4022daf..4bc619b 100644 --- a/chrome/common/jstemplate_builder.h +++ b/chrome/common/jstemplate_builder.h @@ -10,13 +10,14 @@ // - given a json data object, run the jstemplate javascript which fills in // template values -#ifndef CHROME_RENDERER_JSTEMPLATE_BUILDER_H__ -#define CHROME_RENDERER_JSTEMPLATE_BUILDER_H__ +#ifndef CHROME_COMMON_JSTEMPLATE_BUILDER_H_ +#define CHROME_COMMON_JSTEMPLATE_BUILDER_H_ #include <string> #include "base/values.h" -#include "base/string_piece.h" + +class StringPiece; namespace jstemplate_builder { // A helper function that generates a string of HTML to be loaded. The @@ -26,4 +27,4 @@ namespace jstemplate_builder { const DictionaryValue* json, const StringPiece& template_id); } // namespace jstemplate_builder -#endif // CHROME_RENDERER_JSTEMPLATE_BUILDER_H__ +#endif // CHROME_COMMON_JSTEMPLATE_BUILDER_H_ diff --git a/chrome/test/v8_unit_test.h b/chrome/test/v8_unit_test.h index da52163..1502e9d 100644 --- a/chrome/test/v8_unit_test.h +++ b/chrome/test/v8_unit_test.h @@ -7,10 +7,11 @@ #include <string> -#include "base/string_piece.h" #include "testing/gtest/include/gtest/gtest.h" #include "v8/include/v8.h" +class StringPiece; + // A superclass for unit tests that involve running JavaScript. This class // sets up V8 context and has methods that make it easy to execute scripts in // this context as well as call functions in the context. |