diff options
-rw-r--r-- | base/histogram.cc | 1 | ||||
-rw-r--r-- | base/histogram.h | 9 | ||||
-rw-r--r-- | chrome/browser/bookmarks/bookmark_model.h | 12 | ||||
-rw-r--r-- | chrome/browser/extensions/user_script_master.h | 7 | ||||
-rw-r--r-- | chrome/browser/google_url_tracker.h | 3 | ||||
-rw-r--r-- | chrome/browser/sessions/session_backend.cc | 1 | ||||
-rw-r--r-- | chrome/common/extensions/user_script.cc | 1 | ||||
-rw-r--r-- | chrome/common/extensions/user_script.h | 3 | ||||
-rw-r--r-- | chrome/common/extensions/user_script_unittest.cc | 1 | ||||
-rw-r--r-- | webkit/glue/glue_serialize_unittest.cc | 1 |
10 files changed, 26 insertions, 13 deletions
diff --git a/base/histogram.cc b/base/histogram.cc index 9184926e..d1568429 100644 --- a/base/histogram.cc +++ b/base/histogram.cc @@ -13,6 +13,7 @@ #include <string> #include "base/logging.h" +#include "base/pickle.h" #include "base/string_util.h" using base::TimeDelta; diff --git a/base/histogram.h b/base/histogram.h index f189a06..0773a7a 100644 --- a/base/histogram.h +++ b/base/histogram.h @@ -28,15 +28,14 @@ // at the low end of the histogram scale, but allows the histogram to cover a // gigantic range with the addition of very few buckets. -#ifndef BASE_HISTOGRAM_H__ -#define BASE_HISTOGRAM_H__ +#ifndef BASE_HISTOGRAM_H_ +#define BASE_HISTOGRAM_H_ #include <map> #include <string> #include <vector> #include "base/lock.h" -#include "base/pickle.h" #include "base/stats_counters.h" //------------------------------------------------------------------------------ @@ -202,6 +201,8 @@ static const int kRendererHistogramFlag = 1 << 4; //------------------------------------------------------------------------------ +class Pickle; + class Histogram : public StatsRate { public: typedef int Sample; // Used for samples (and ranges of samples). @@ -551,4 +552,4 @@ class StatisticsRecorder { DISALLOW_COPY_AND_ASSIGN(StatisticsRecorder); }; -#endif // BASE_HISTOGRAM_H__ +#endif // BASE_HISTOGRAM_H_ diff --git a/chrome/browser/bookmarks/bookmark_model.h b/chrome/browser/bookmarks/bookmark_model.h index f3b05a5..5f63b73 100644 --- a/chrome/browser/bookmarks/bookmark_model.h +++ b/chrome/browser/bookmarks/bookmark_model.h @@ -2,11 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_BAR_MODEL_H_ -#define CHROME_BROWSER_BOOKMARKS_BOOKMARK_BAR_MODEL_H_ +#ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ +#define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ #include "build/build_config.h" +#include <set> +#include <vector> + #include "base/lock.h" #include "base/observer_list.h" #include "base/waitable_event.h" @@ -19,6 +22,7 @@ #include "chrome/views/controls/tree/tree_node_model.h" #include "googleurl/src/gurl.h" #include "skia/include/SkBitmap.h" +#include "testing/gtest/include/gtest/gtest_prod.h" class BookmarkEditorView; class BookmarkModel; @@ -413,7 +417,7 @@ class BookmarkModel : public NotificationObserver, public BookmarkService { // urls. // WARNING: nodes_ordered_by_url_set_ is accessed on multiple threads. As // such, be sure and wrap all usage of it around url_lock_. - typedef std::multiset<BookmarkNode*,NodeURLComparator> NodesOrderedByURLSet; + typedef std::multiset<BookmarkNode*, NodeURLComparator> NodesOrderedByURLSet; NodesOrderedByURLSet nodes_ordered_by_url_set_; Lock url_lock_; @@ -433,4 +437,4 @@ class BookmarkModel : public NotificationObserver, public BookmarkService { DISALLOW_COPY_AND_ASSIGN(BookmarkModel); }; -#endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_BAR_MODEL_H_ +#endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h index d546b62..b4932f2 100644 --- a/chrome/browser/extensions/user_script_master.h +++ b/chrome/browser/extensions/user_script_master.h @@ -5,6 +5,8 @@ #ifndef CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_ #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_ +#include <vector> + #include "base/directory_watcher.h" #include "base/file_path.h" #include "base/message_loop.h" @@ -14,6 +16,7 @@ #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" // Manages a segment of shared memory that contains the user scripts the user // has installed. Lives on the UI thread. @@ -77,8 +80,8 @@ class UserScriptMaster : public base::RefCounted<UserScriptMaster>, static void LoadScriptsFromDirectory(const FilePath script_dir, UserScriptList* result); - ScriptReloader(UserScriptMaster* master) - : master_(master), master_message_loop_(MessageLoop::current()) {} + explicit ScriptReloader(UserScriptMaster* master) + : master_(master), master_message_loop_(MessageLoop::current()) {} // Start a scan for scripts. // Will always send a message to the master upon completion. diff --git a/chrome/browser/google_url_tracker.h b/chrome/browser/google_url_tracker.h index f447c96..bdc7290 100644 --- a/chrome/browser/google_url_tracker.h +++ b/chrome/browser/google_url_tracker.h @@ -5,9 +5,12 @@ #ifndef CHROME_BROWSER_GOOGLE_URL_TRACKER_H_ #define CHROME_BROWSER_GOOGLE_URL_TRACKER_H_ +#include <string> + #include "chrome/browser/net/url_fetcher.h" #include "chrome/common/notification_observer.h" #include "googleurl/src/gurl.h" +#include "testing/gtest/include/gtest/gtest_prod.h" class PrefService; diff --git a/chrome/browser/sessions/session_backend.cc b/chrome/browser/sessions/session_backend.cc index 240d151..ea14c17 100644 --- a/chrome/browser/sessions/session_backend.cc +++ b/chrome/browser/sessions/session_backend.cc @@ -8,7 +8,6 @@ #include "base/file_util.h" #include "base/histogram.h" -#include "base/pickle.h" #include "chrome/common/scoped_vector.h" using base::TimeTicks; diff --git a/chrome/common/extensions/user_script.cc b/chrome/common/extensions/user_script.cc index b970570..69fe5f4 100644 --- a/chrome/common/extensions/user_script.cc +++ b/chrome/common/extensions/user_script.cc @@ -4,6 +4,7 @@ #include "chrome/common/extensions/user_script.h" +#include "base/pickle.h" #include "base/string_util.h" bool UserScript::MatchesUrl(const GURL& url) { diff --git a/chrome/common/extensions/user_script.h b/chrome/common/extensions/user_script.h index bf1ec0d..1a8d6df 100644 --- a/chrome/common/extensions/user_script.h +++ b/chrome/common/extensions/user_script.h @@ -9,11 +9,12 @@ #include <string> #include "base/file_path.h" -#include "base/pickle.h" #include "base/string_piece.h" #include "chrome/common/extensions/url_pattern.h" #include "googleurl/src/gurl.h" +class Pickle; + // Represents a user script, either a standalone one, or one that is part of an // extension. class UserScript { diff --git a/chrome/common/extensions/user_script_unittest.cc b/chrome/common/extensions/user_script_unittest.cc index 46014f8..62fa0a3 100644 --- a/chrome/common/extensions/user_script_unittest.cc +++ b/chrome/common/extensions/user_script_unittest.cc @@ -3,6 +3,7 @@ // found in the LICENSE file. #include "base/file_path.h" +#include "base/pickle.h" #include "chrome/common/extensions/user_script.h" #include "googleurl/src/gurl.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/webkit/glue/glue_serialize_unittest.cc b/webkit/glue/glue_serialize_unittest.cc index fb48e68..2a8dba3 100644 --- a/webkit/glue/glue_serialize_unittest.cc +++ b/webkit/glue/glue_serialize_unittest.cc @@ -17,7 +17,6 @@ MSVC_POP_WARNING(); #undef LOG -#include "base/pickle.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/glue/glue_serialize.h" |