summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 19:22:27 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 19:22:27 +0000
commitd52a0b3f99d3a4b33901c02d51328e1879854926 (patch)
treedc96794a157a346157d0e66e494938b3cf5657a2
parent3cf5d278c024e61903b4b615761b237abcafe725 (diff)
downloadchromium_src-d52a0b3f99d3a4b33901c02d51328e1879854926.zip
chromium_src-d52a0b3f99d3a4b33901c02d51328e1879854926.tar.gz
chromium_src-d52a0b3f99d3a4b33901c02d51328e1879854926.tar.bz2
Remove unneeded includes of base/string_piece.h
Review URL: http://codereview.chromium.org/62016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13265 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/extensions/user_script_master.h3
-rw-r--r--chrome/common/jstemplate_builder.h9
-rw-r--r--chrome/test/v8_unit_test.h3
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.