Browse Source

clang-format chromium_src

Shelley Vohr 7 years ago
parent
commit
8cc81509d7
38 changed files with 203 additions and 232 deletions
  1. 5 7
      chromium_src/chrome/browser/certificate_manager_model.h
  2. 10 6
      chromium_src/chrome/browser/extensions/global_shortcut_listener_mac.h
  3. 1 1
      chromium_src/chrome/browser/extensions/global_shortcut_listener_x11.h
  4. 1 1
      chromium_src/chrome/browser/icon_manager.h
  5. 1 3
      chromium_src/chrome/browser/printing/print_job.h
  6. 2 2
      chromium_src/chrome/browser/printing/print_job_manager.h
  7. 4 6
      chromium_src/chrome/browser/printing/print_job_worker.h
  8. 2 3
      chromium_src/chrome/browser/printing/print_job_worker_owner.h
  9. 4 5
      chromium_src/chrome/browser/printing/print_view_manager_base.h
  10. 10 11
      chromium_src/chrome/browser/printing/printer_query.h
  11. 3 4
      chromium_src/chrome/browser/printing/printing_message_filter.h
  12. 1 1
      chromium_src/chrome/browser/process_singleton.h
  13. 1 1
      chromium_src/chrome/browser/renderer_host/pepper/pepper_broker_message_filter.h
  14. 1 1
      chromium_src/chrome/browser/renderer_host/pepper/pepper_flash_browser_host.h
  15. 1 1
      chromium_src/chrome/browser/renderer_host/pepper/pepper_flash_clipboard_message_filter.h
  16. 1 1
      chromium_src/chrome/browser/renderer_host/pepper/widevine_cdm_message_filter.h
  17. 3 11
      chromium_src/chrome/browser/speech/tts_controller.h
  18. 3 3
      chromium_src/chrome/browser/speech/tts_controller_impl.h
  19. 6 8
      chromium_src/chrome/browser/speech/tts_message_filter.h
  20. 5 6
      chromium_src/chrome/browser/speech/tts_platform.h
  21. 1 2
      chromium_src/chrome/browser/ssl/security_state_tab_helper.h
  22. 1 1
      chromium_src/chrome/browser/ui/browser_dialogs.h
  23. 1 1
      chromium_src/chrome/browser/ui/views/color_chooser_aura.h
  24. 10 4
      chromium_src/chrome/browser/ui/views/frame/global_menu_bar_registrar_x11.h
  25. 69 69
      chromium_src/chrome/common/chrome_paths.h
  26. 2 1
      chromium_src/chrome/common/chrome_paths_internal.h
  27. 8 13
      chromium_src/chrome/common/print_messages.h
  28. 20 28
      chromium_src/chrome/common/tts_messages.h
  29. 1 1
      chromium_src/chrome/common/widevine_cdm_constants.h
  30. 1 1
      chromium_src/chrome/renderer/pepper/pepper_flash_font_file_host.h
  31. 2 2
      chromium_src/chrome/renderer/pepper/pepper_flash_menu_host.h
  32. 1 1
      chromium_src/chrome/renderer/pepper/pepper_flash_renderer_host.h
  33. 1 1
      chromium_src/chrome/renderer/pepper/pepper_shared_memory_message_filter.h
  34. 5 8
      chromium_src/chrome/renderer/printing/print_web_view_helper.h
  35. 4 5
      chromium_src/chrome/renderer/tts_dispatcher.h
  36. 1 1
      chromium_src/components/pdf/renderer/pepper_pdf_host.h
  37. 8 8
      chromium_src/extensions/common/url_pattern.h
  38. 2 3
      chromium_src/library_loaders/libspeechd.h

+ 5 - 7
chromium_src/chrome/browser/certificate_manager_model.h

@@ -98,13 +98,11 @@ class CertificateManagerModel {
 
   // Methods used during initialization, see the comment at the top of the .cc
   // file for details.
-  static void DidGetCertDBOnUIThread(
-      net::NSSCertDatabase* cert_db,
-      bool is_user_db_available,
-      const CreationCallback& callback);
-  static void DidGetCertDBOnIOThread(
-      const CreationCallback& callback,
-      net::NSSCertDatabase* cert_db);
+  static void DidGetCertDBOnUIThread(net::NSSCertDatabase* cert_db,
+                                     bool is_user_db_available,
+                                     const CreationCallback& callback);
+  static void DidGetCertDBOnIOThread(const CreationCallback& callback,
+                                     net::NSSCertDatabase* cert_db);
   static void GetCertDBOnIOThread(content::ResourceContext* context,
                                   const CreationCallback& callback);
 

+ 10 - 6
chromium_src/chrome/browser/extensions/global_shortcut_listener_mac.h

@@ -21,8 +21,9 @@ namespace extensions {
 // forwards its output to the base class for processing.
 //
 // This class does two things:
-// 1. Intercepts media/volume keys. Uses an event tap for intercepting media keys
-// (PlayPause, NextTrack, PreviousTrack) and volume keys(VolumeUp, VolumeDown, VolumeMute).
+// 1. Intercepts media/volume keys. Uses an event tap for intercepting media
+// keys (PlayPause, NextTrack, PreviousTrack) and volume keys(VolumeUp,
+// VolumeDown, VolumeMute).
 // 2. Binds keyboard shortcuts (hot keys). Carbon RegisterEventHotKey API for
 // binding to non-media key global hot keys (eg. Command-Shift-1).
 class GlobalShortcutListenerMac : public GlobalShortcutListener {
@@ -67,12 +68,15 @@ class GlobalShortcutListenerMac : public GlobalShortcutListener {
   bool IsAnyHotKeyRegistered();
 
   // The callback for when an event tap happens.
-  static CGEventRef EventTapCallback(
-      CGEventTapProxy proxy, CGEventType type, CGEventRef event, void* refcon);
+  static CGEventRef EventTapCallback(CGEventTapProxy proxy,
+                                     CGEventType type,
+                                     CGEventRef event,
+                                     void* refcon);
 
   // The callback for when a hot key event happens.
-  static OSStatus HotKeyHandler(
-      EventHandlerCallRef next_handler, EventRef event, void* user_data);
+  static OSStatus HotKeyHandler(EventHandlerCallRef next_handler,
+                                EventRef event,
+                                void* user_data);
 
   // Whether this object is listening for global shortcuts.
   bool is_listening_;

+ 1 - 1
chromium_src/chrome/browser/extensions/global_shortcut_listener_x11.h

@@ -5,8 +5,8 @@
 #ifndef CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_X11_H_
 #define CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_X11_H_
 
-#include <stdint.h>
 #include <X11/Xlib.h>
+#include <stdint.h>
 
 #include <set>
 

+ 1 - 1
chromium_src/chrome/browser/icon_manager.h

@@ -97,7 +97,7 @@ class IconManager {
     CacheKey(const IconLoader::IconGroup& group, IconLoader::IconSize size);
 
     // Used as a key in the map below, so we need this comparator.
-    bool operator<(const CacheKey &other) const;
+    bool operator<(const CacheKey& other) const;
 
     IconLoader::IconGroup group;
     IconLoader::IconSize size;

+ 1 - 3
chromium_src/chrome/browser/printing/print_job.h

@@ -209,9 +209,7 @@ class JobEventDetails : public base::RefCountedThreadSafe<JobEventDetails> {
   // Getters.
   PrintedDocument* document() const;
   PrintedPage* page() const;
-  Type type() const {
-    return type_;
-  }
+  Type type() const { return type_; }
 
  private:
   friend class base::RefCountedThreadSafe<JobEventDetails>;

+ 2 - 2
chromium_src/chrome/browser/printing/print_job_manager.h

@@ -43,7 +43,7 @@ class PrintQueriesQueue : public base::RefCountedThreadSafe<PrintQueriesQueue> {
 
  private:
   friend class base::RefCountedThreadSafe<PrintQueriesQueue>;
-  typedef std::vector<scoped_refptr<PrinterQuery> > PrinterQueries;
+  typedef std::vector<scoped_refptr<PrinterQuery>> PrinterQueries;
 
   virtual ~PrintQueriesQueue();
 
@@ -73,7 +73,7 @@ class PrintJobManager : public content::NotificationObserver {
   scoped_refptr<PrintQueriesQueue> queue();
 
  private:
-  typedef std::set<scoped_refptr<PrintJob> > PrintJobs;
+  typedef std::set<scoped_refptr<PrintJob>> PrintJobs;
 
   // Processes a NOTIFY_PRINT_JOB_EVENT notification.
   void OnPrintJobEvent(PrintJob* print_job,

+ 4 - 6
chromium_src/chrome/browser/printing/print_job_worker.h

@@ -77,8 +77,7 @@ class PrintJobWorker {
   bool IsRunning() const;
 
   // Posts the given task to be run.
-  bool PostTask(const base::Location& from_here,
-                const base::Closure& task);
+  bool PostTask(const base::Location& from_here, const base::Closure& task);
 
   // Signals the thread to exit in the near future.
   void StopSoon();
@@ -114,10 +113,9 @@ class PrintJobWorker {
   // Asks the user for print settings. Must be called on the UI thread.
   // Required on Mac and Linux. Windows can display UI from non-main threads,
   // but sticks with this for consistency.
-  void GetSettingsWithUI(
-      int document_page_count,
-      bool has_selection,
-      bool is_scripted);
+  void GetSettingsWithUI(int document_page_count,
+                         bool has_selection,
+                         bool is_scripted);
 
   // Called on the UI thread to update the print settings.
   void UpdatePrintSettings(std::unique_ptr<base::DictionaryValue> new_settings);

+ 2 - 3
chromium_src/chrome/browser/printing/print_job_worker_owner.h

@@ -14,7 +14,7 @@
 namespace base {
 class MessageLoop;
 class SequencedTaskRunner;
-}
+}  // namespace base
 
 namespace printing {
 
@@ -48,8 +48,7 @@ class PrintJobWorkerOwner
   bool RunsTasksInCurrentSequence() const;
 
   // Posts the given task to be run.
-  bool PostTask(const base::Location& from_here,
-                const base::Closure& task);
+  bool PostTask(const base::Location& from_here, const base::Closure& task);
 
  protected:
   friend class base::RefCountedThreadSafe<PrintJobWorkerOwner>;

+ 4 - 5
chromium_src/chrome/browser/printing/print_view_manager_base.h

@@ -9,8 +9,8 @@
 
 #include "base/callback.h"
 #include "base/memory/ref_counted.h"
-#include "components/prefs/pref_member.h"
 #include "base/strings/string16.h"
+#include "components/prefs/pref_member.h"
 #include "content/public/browser/notification_observer.h"
 #include "content/public/browser/notification_registrar.h"
 #include "content/public/browser/web_contents_observer.h"
@@ -41,16 +41,15 @@ class PrintViewManagerBase : public content::NotificationObserver,
   // asynchronous, the actual printing will not be completed on the return of
   // this function. Returns false if printing is impossible at the moment.
   virtual bool PrintNow(content::RenderFrameHost* rfh,
-                        bool silent, bool print_background,
+                        bool silent,
+                        bool print_background,
                         const base::string16& device_name);
 #endif  // !DISABLE_BASIC_PRINTING
 
   // PrintedPagesSource implementation.
   base::string16 RenderSourceName();
 
-  void SetCallback(const base::Callback<void(bool)>& cb) {
-    callback = cb;
-  };
+  void SetCallback(const base::Callback<void(bool)>& cb) { callback = cb; };
 
  protected:
   explicit PrintViewManagerBase(content::WebContents* web_contents);

+ 10 - 11
chromium_src/chrome/browser/printing/printer_query.h

@@ -53,17 +53,16 @@ class PrinterQuery : public PrintJobWorkerOwner {
                    bool is_modifiable,
                    const base::Closure& callback);
 
-  void GetSettings(
-      GetSettingsAskParam ask_user_for_settings,
-      int expected_page_count,
-      bool has_selection,
-      MarginType margin_type,
-      bool is_scripted,
-      bool is_modifiable,
-      const base::string16& device_name,
-      const base::Closure& callback);
-
-    // Updates the current settings with |new_settings| dictionary values.
+  void GetSettings(GetSettingsAskParam ask_user_for_settings,
+                   int expected_page_count,
+                   bool has_selection,
+                   MarginType margin_type,
+                   bool is_scripted,
+                   bool is_modifiable,
+                   const base::string16& device_name,
+                   const base::Closure& callback);
+
+  // Updates the current settings with |new_settings| dictionary values.
   void SetSettings(std::unique_ptr<base::DictionaryValue> new_settings,
                    const base::Closure& callback);
 

+ 3 - 4
chromium_src/chrome/browser/printing/printing_message_filter.h

@@ -15,7 +15,7 @@ struct PrintHostMsg_ScriptedPrint_Params;
 namespace base {
 class DictionaryValue;
 class FilePath;
-}
+}  // namespace base
 
 namespace content {
 class WebContents;
@@ -33,9 +33,8 @@ class PrintingMessageFilter : public content::BrowserMessageFilter {
   PrintingMessageFilter(int render_process_id);
 
   // content::BrowserMessageFilter methods.
-  void OverrideThreadForMessage(
-      const IPC::Message& message,
-      content::BrowserThread::ID* thread) override;
+  void OverrideThreadForMessage(const IPC::Message& message,
+                                content::BrowserThread::ID* thread) override;
   bool OnMessageReceived(const IPC::Message& message) override;
 
  private:

+ 1 - 1
chromium_src/chrome/browser/process_singleton.h

@@ -127,7 +127,7 @@ class ProcessSingleton {
   NotificationCallback notification_callback_;  // Handler for notifications.
 
 #if defined(OS_WIN)
-  HWND remote_window_;  // The HWND_MESSAGE of another browser.
+  HWND remote_window_;               // The HWND_MESSAGE of another browser.
   base::win::MessageWindow window_;  // The message-only window.
   bool is_virtualized_;  // Stuck inside Microsoft Softricity VM environment.
   HANDLE lock_file_;

+ 1 - 1
chromium_src/chrome/browser/renderer_host/pepper/pepper_broker_message_filter.h

@@ -18,7 +18,7 @@ namespace ppapi {
 namespace host {
 struct HostMessageContext;
 }
-}
+}  // namespace ppapi
 
 namespace chrome {
 

+ 1 - 1
chromium_src/chrome/browser/renderer_host/pepper/pepper_flash_browser_host.h

@@ -17,7 +17,7 @@ class Time;
 namespace content {
 class BrowserPpapiHost;
 class ResourceContext;
-}
+}  // namespace content
 
 class GURL;
 

+ 1 - 1
chromium_src/chrome/browser/renderer_host/pepper/pepper_flash_clipboard_message_filter.h

@@ -15,7 +15,7 @@ namespace ppapi {
 namespace host {
 struct HostMessageContext;
 }
-}
+}  // namespace ppapi
 
 namespace ui {
 class ScopedClipboardWriter;

+ 1 - 1
chromium_src/chrome/browser/renderer_host/pepper/widevine_cdm_message_filter.h

@@ -16,7 +16,7 @@ class BrowserContext;
 class WidevineCdmMessageFilter : public content::BrowserMessageFilter {
  public:
   explicit WidevineCdmMessageFilter(int render_process_id,
-      content::BrowserContext* browser_context);
+                                    content::BrowserContext* browser_context);
   bool OnMessageReceived(const IPC::Message& message) override;
   void OnDestruct() const override;
 

+ 3 - 11
chromium_src/chrome/browser/speech/tts_controller.h

@@ -40,11 +40,7 @@ enum TtsEventType {
   TTS_EVENT_RESUME
 };
 
-enum TtsGenderType {
-  TTS_GENDER_NONE,
-  TTS_GENDER_MALE,
-  TTS_GENDER_FEMALE
-};
+enum TtsGenderType { TTS_GENDER_NONE, TTS_GENDER_MALE, TTS_GENDER_FEMALE };
 
 // Returns true if this event type is one that indicates an utterance
 // is finished and can be destroyed.
@@ -167,14 +163,10 @@ class Utterance {
   }
   const std::string& voice_name() const { return voice_name_; }
 
-  void set_lang(const std::string& lang) {
-    lang_ = lang;
-  }
+  void set_lang(const std::string& lang) { lang_ = lang; }
   const std::string& lang() const { return lang_; }
 
-  void set_gender(TtsGenderType gender) {
-    gender_ = gender;
-  }
+  void set_gender(TtsGenderType gender) { gender_ = gender; }
   TtsGenderType gender() const { return gender_; }
 
   void set_continuous_parameters(const UtteranceContinuousParameters& params) {

+ 3 - 3
chromium_src/chrome/browser/speech/tts_controller_impl.h

@@ -35,9 +35,9 @@ class TtsControllerImpl : public TtsController {
   virtual void Pause() override;
   virtual void Resume() override;
   virtual void OnTtsEvent(int utterance_id,
-                  TtsEventType event_type,
-                  int char_index,
-                  const std::string& error_message) override;
+                          TtsEventType event_type,
+                          int char_index,
+                          const std::string& error_message) override;
   virtual void GetVoices(content::BrowserContext* browser_context,
                          std::vector<VoiceData>* out_voices) override;
   virtual void VoicesChanged() override;

+ 6 - 8
chromium_src/chrome/browser/speech/tts_message_filter.h

@@ -14,18 +14,16 @@ namespace content {
 class BrowserContext;
 }
 
-class TtsMessageFilter
-    : public content::BrowserMessageFilter,
-      public UtteranceEventDelegate,
-      public VoicesChangedDelegate {
+class TtsMessageFilter : public content::BrowserMessageFilter,
+                         public UtteranceEventDelegate,
+                         public VoicesChangedDelegate {
  public:
   explicit TtsMessageFilter(int render_process_id,
-      content::BrowserContext* browser_context);
+                            content::BrowserContext* browser_context);
 
   // content::BrowserMessageFilter implementation.
-  void OverrideThreadForMessage(
-      const IPC::Message& message,
-      content::BrowserThread::ID* thread) override;
+  void OverrideThreadForMessage(const IPC::Message& message,
+                                content::BrowserThread::ID* thread) override;
   bool OnMessageReceived(const IPC::Message& message) override;
   void OnChannelClosing() override;
   void OnDestruct() const override;

+ 5 - 6
chromium_src/chrome/browser/speech/tts_platform.h

@@ -33,12 +33,11 @@ class TtsPlatformImpl {
   // The TtsController will only try to speak one utterance at
   // a time. If it wants to interrupt speech, it will always call Stop
   // before speaking again.
-  virtual bool Speak(
-      int utterance_id,
-      const std::string& utterance,
-      const std::string& lang,
-      const VoiceData& voice,
-      const UtteranceContinuousParameters& params) = 0;
+  virtual bool Speak(int utterance_id,
+                     const std::string& utterance,
+                     const std::string& lang,
+                     const VoiceData& voice,
+                     const UtteranceContinuousParameters& params) = 0;
 
   // Stop speaking immediately and return true on success.
   virtual bool StopSpeaking() = 0;

+ 1 - 2
chromium_src/chrome/browser/ssl/security_state_tab_helper.h

@@ -27,8 +27,7 @@ class SecurityStateTabHelper
   ~SecurityStateTabHelper() override;
 
   // See security_state::GetSecurityInfo.
-  void GetSecurityInfo(
-      security_state::SecurityInfo* result) const;
+  void GetSecurityInfo(security_state::SecurityInfo* result) const;
 
   // Called when the NavigationEntry's SSLStatus or other security
   // information changes.

+ 1 - 1
chromium_src/chrome/browser/ui/browser_dialogs.h

@@ -13,7 +13,7 @@ class SkBitmap;
 namespace content {
 class ColorChooser;
 class WebContents;
-}
+}  // namespace content
 
 namespace chrome {
 

+ 1 - 1
chromium_src/chrome/browser/ui/views/color_chooser_aura.h

@@ -16,7 +16,7 @@ class WebContents;
 namespace views {
 class ColorChooserView;
 class Widget;
-}
+}  // namespace views
 
 // TODO(mukai): rename this as -Ash and move to c/b/ui/ash after Linux-aura
 // switches to its native color chooser.

+ 10 - 4
chromium_src/chrome/browser/ui/views/frame/global_menu_bar_registrar_x11.h

@@ -36,10 +36,16 @@ class GlobalMenuBarRegistrarX11 {
   void RegisterXID(unsigned long xid);
   void UnregisterXID(unsigned long xid);
 
-  CHROMEG_CALLBACK_1(GlobalMenuBarRegistrarX11, void, OnProxyCreated,
-                     GObject*, GAsyncResult*);
-  CHROMEG_CALLBACK_1(GlobalMenuBarRegistrarX11, void, OnNameOwnerChanged,
-                     GObject*, GParamSpec*);
+  CHROMEG_CALLBACK_1(GlobalMenuBarRegistrarX11,
+                     void,
+                     OnProxyCreated,
+                     GObject*,
+                     GAsyncResult*);
+  CHROMEG_CALLBACK_1(GlobalMenuBarRegistrarX11,
+                     void,
+                     OnNameOwnerChanged,
+                     GObject*,
+                     GParamSpec*);
 
   GDBusProxy* registrar_proxy_;
 

+ 69 - 69
chromium_src/chrome/common/chrome_paths.h

@@ -19,36 +19,36 @@ namespace chrome {
 enum {
   PATH_START = 1000,
 
-  DIR_APP = PATH_START,         // Directory where dlls and data reside.
-  DIR_LOGS,                     // Directory where logs should be written.
-  DIR_USER_DATA,                // Directory where user data can be written.
-  DIR_CRASH_DUMPS,              // Directory where crash dumps are written.
+  DIR_APP = PATH_START,  // Directory where dlls and data reside.
+  DIR_LOGS,              // Directory where logs should be written.
+  DIR_USER_DATA,         // Directory where user data can be written.
+  DIR_CRASH_DUMPS,       // Directory where crash dumps are written.
 #if defined(OS_WIN)
-  DIR_WATCHER_DATA,             // Directory where the Chrome watcher stores
-                                // data.
+  DIR_WATCHER_DATA,  // Directory where the Chrome watcher stores
+                     // data.
 #endif
-  DIR_RESOURCES,                // Directory containing separate file resources
-                                // used by Chrome at runtime.
-  DIR_INSPECTOR,                // Directory where web inspector is located.
-  DIR_APP_DICTIONARIES,         // Directory where the global dictionaries are.
-  DIR_USER_DOCUMENTS,           // Directory for a user's "My Documents".
-  DIR_USER_MUSIC,               // Directory for a user's music.
-  DIR_USER_PICTURES,            // Directory for a user's pictures.
-  DIR_USER_VIDEOS,              // Directory for a user's videos.
-  DIR_DEFAULT_DOWNLOADS_SAFE,   // Directory for a user's
-                                // "My Documents/Downloads", (Windows) or
-                                // "Downloads". (Linux)
-  DIR_DEFAULT_DOWNLOADS,        // Directory for a user's downloads.
-  DIR_INTERNAL_PLUGINS,         // Directory where internal plugins reside.
+  DIR_RESOURCES,               // Directory containing separate file resources
+                               // used by Chrome at runtime.
+  DIR_INSPECTOR,               // Directory where web inspector is located.
+  DIR_APP_DICTIONARIES,        // Directory where the global dictionaries are.
+  DIR_USER_DOCUMENTS,          // Directory for a user's "My Documents".
+  DIR_USER_MUSIC,              // Directory for a user's music.
+  DIR_USER_PICTURES,           // Directory for a user's pictures.
+  DIR_USER_VIDEOS,             // Directory for a user's videos.
+  DIR_DEFAULT_DOWNLOADS_SAFE,  // Directory for a user's
+                               // "My Documents/Downloads", (Windows) or
+                               // "Downloads". (Linux)
+  DIR_DEFAULT_DOWNLOADS,       // Directory for a user's downloads.
+  DIR_INTERNAL_PLUGINS,        // Directory where internal plugins reside.
 #if defined(OS_POSIX) && !defined(OS_MACOSX)
-  DIR_POLICY_FILES,             // Directory for system-wide read-only
-                                // policy files that allow sys-admins
-                                // to set policies for chrome. This directory
-                                // contains subdirectories.
+  DIR_POLICY_FILES,  // Directory for system-wide read-only
+                     // policy files that allow sys-admins
+                     // to set policies for chrome. This directory
+                     // contains subdirectories.
 #endif
 #if defined(OS_MACOSX) && !defined(OS_IOS)
-  DIR_USER_APPLICATIONS,        // ~/Applications
-  DIR_USER_LIBRARY,             // ~/Library
+  DIR_USER_APPLICATIONS,  // ~/Applications
+  DIR_USER_LIBRARY,       // ~/Library
 #endif
 #if defined(OS_CHROMEOS) || (defined(OS_LINUX) && defined(CHROMIUM_BUILD)) || \
     (defined(OS_MACOSX) && !defined(OS_IOS))
@@ -65,47 +65,47 @@ enum {
                                        // describe extensions which are to be
                                        // installed when chrome is run.
 #endif
-  DIR_EXTERNAL_EXTENSIONS,      // Directory where installer places .crx files.
+  DIR_EXTERNAL_EXTENSIONS,  // Directory where installer places .crx files.
 
-  DIR_DEFAULT_APPS,             // Directory where installer places .crx files
-                                // to be installed when chrome is first run.
-  DIR_PEPPER_FLASH_PLUGIN,      // Directory to the bundled Pepper Flash plugin,
-                                // containing the plugin and the manifest.
+  DIR_DEFAULT_APPS,         // Directory where installer places .crx files
+                            // to be installed when chrome is first run.
+  DIR_PEPPER_FLASH_PLUGIN,  // Directory to the bundled Pepper Flash plugin,
+                            // containing the plugin and the manifest.
   DIR_COMPONENT_UPDATED_PEPPER_FLASH_PLUGIN,  // Base directory of the Pepper
                                               // Flash plugins downloaded by the
                                               // component updater.
-  FILE_RESOURCE_MODULE,         // Full path and filename of the module that
-                                // contains embedded resources (version,
-                                // strings, images, etc.).
-  FILE_LOCAL_STATE,             // Path and filename to the file in which
-                                // machine/installation-specific state is saved.
-  FILE_RECORDED_SCRIPT,         // Full path to the script.log file that
-                                // contains recorded browser events for
-                                // playback.
-  FILE_PEPPER_FLASH_PLUGIN,     // Full path to the bundled Pepper Flash plugin
-                                // file.
+  FILE_RESOURCE_MODULE,      // Full path and filename of the module that
+                             // contains embedded resources (version,
+                             // strings, images, etc.).
+  FILE_LOCAL_STATE,          // Path and filename to the file in which
+                             // machine/installation-specific state is saved.
+  FILE_RECORDED_SCRIPT,      // Full path to the script.log file that
+                             // contains recorded browser events for
+                             // playback.
+  FILE_PEPPER_FLASH_PLUGIN,  // Full path to the bundled Pepper Flash plugin
+                             // file.
   FILE_PEPPER_FLASH_SYSTEM_PLUGIN,  // Full path to the system version of the
                                     // Pepper Flash plugin, downloadable from
                                     // Adobe website. Querying this path might
                                     // succeed no matter the file exists or not.
-  FILE_FLASH_SYSTEM_PLUGIN,     // Full path to the system version of NPAPI
-                                // Flash plugin, downloadable from Adobe
-                                // website. Querying this path might succeed no
-                                // matter the file exists or not.
-  FILE_NACL_PLUGIN,             // Full path to the internal NaCl plugin file.
-  DIR_PNACL_BASE,               // Full path to the base dir for PNaCl.
-  DIR_PNACL_COMPONENT,          // Full path to the latest PNaCl version
-                                // (subdir of DIR_PNACL_BASE).
-  DIR_COMPONENT_WIDEVINE_CDM,   // Directory that contains component-updated
-                                // Widevine CDM files.
-  FILE_WIDEVINE_CDM_ADAPTER,    // Full path to the Widevine CDM adapter file.
-  FILE_RESOURCES_PACK,          // Full path to the .pak file containing
-                                // binary data (e.g., html files and images
-                                // used by internal pages).
-  DIR_RESOURCES_EXTENSION,      // Full path to extension resources.
+  FILE_FLASH_SYSTEM_PLUGIN,         // Full path to the system version of NPAPI
+                                    // Flash plugin, downloadable from Adobe
+                             // website. Querying this path might succeed no
+                             // matter the file exists or not.
+  FILE_NACL_PLUGIN,            // Full path to the internal NaCl plugin file.
+  DIR_PNACL_BASE,              // Full path to the base dir for PNaCl.
+  DIR_PNACL_COMPONENT,         // Full path to the latest PNaCl version
+                               // (subdir of DIR_PNACL_BASE).
+  DIR_COMPONENT_WIDEVINE_CDM,  // Directory that contains component-updated
+                               // Widevine CDM files.
+  FILE_WIDEVINE_CDM_ADAPTER,   // Full path to the Widevine CDM adapter file.
+  FILE_RESOURCES_PACK,         // Full path to the .pak file containing
+                               // binary data (e.g., html files and images
+                               // used by internal pages).
+  DIR_RESOURCES_EXTENSION,     // Full path to extension resources.
 #if defined(OS_CHROMEOS)
-  DIR_CHROMEOS_WALLPAPERS,      // Directory where downloaded chromeos
-                                // wallpapers reside.
+  DIR_CHROMEOS_WALLPAPERS,            // Directory where downloaded chromeos
+                                      // wallpapers reside.
   DIR_CHROMEOS_WALLPAPER_THUMBNAILS,  // Directory where downloaded chromeos
                                       // wallpaper thumbnails reside.
   DIR_CHROMEOS_CUSTOM_WALLPAPERS,     // Directory where custom wallpapers
@@ -118,24 +118,24 @@ enum {
                                              // supervised user whitelists are
                                              // installed.
 #if defined(OS_LINUX) || (defined(OS_MACOSX) && !defined(OS_IOS))
-  DIR_NATIVE_MESSAGING,         // System directory where native messaging host
-                                // manifest files are stored.
-  DIR_USER_NATIVE_MESSAGING,    // Directory with Native Messaging Hosts
-                                // installed per-user.
+  DIR_NATIVE_MESSAGING,       // System directory where native messaging host
+                              // manifest files are stored.
+  DIR_USER_NATIVE_MESSAGING,  // Directory with Native Messaging Hosts
+                              // installed per-user.
 #endif
 #if !defined(OS_ANDROID)
-  DIR_GLOBAL_GCM_STORE,         // Directory where the global GCM instance
-                                // stores its data.
+  DIR_GLOBAL_GCM_STORE,  // Directory where the global GCM instance
+                         // stores its data.
 #endif
 
   // Valid only in development environment; TODO(darin): move these
-  DIR_GEN_TEST_DATA,            // Directory where generated test data resides.
-  DIR_TEST_DATA,                // Directory where unit test data resides.
-  DIR_TEST_TOOLS,               // Directory where unit test tools reside.
+  DIR_GEN_TEST_DATA,  // Directory where generated test data resides.
+  DIR_TEST_DATA,      // Directory where unit test data resides.
+  DIR_TEST_TOOLS,     // Directory where unit test tools reside.
 #if defined(OS_LINUX)
-  FILE_COMPONENT_FLASH_HINT,    // A file in a known location that points to
-                                // the component updated flash plugin.
-#endif // defined(OS_LINUX)
+  FILE_COMPONENT_FLASH_HINT,  // A file in a known location that points to
+                              // the component updated flash plugin.
+#endif                        // defined(OS_LINUX)
 
   PATH_END
 };

+ 2 - 1
chromium_src/chrome/common/chrome_paths_internal.h

@@ -34,7 +34,8 @@ bool GetDefaultUserDataDirectory(base::FilePath* result);
 // of this directory, with names like "Cache" and "Media Cache".
 // This will always fill in |result| with a directory, sometimes
 // just |profile_dir|.
-void GetUserCacheDirectory(const base::FilePath& profile_dir, base::FilePath* result);
+void GetUserCacheDirectory(const base::FilePath& profile_dir,
+                           base::FilePath* result);
 
 // Get the path to the user's documents directory.
 bool GetUserDocumentsDirectory(base::FilePath* result);

+ 8 - 13
chromium_src/chrome/common/print_messages.h

@@ -14,8 +14,8 @@
 #include "printing/page_size_margins.h"
 #include "printing/print_job_constants.h"
 #include "third_party/WebKit/public/web/WebPrintScalingOption.h"
-#include "ui/gfx/native_widget_types.h"
 #include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/native_widget_types.h"
 
 #if defined(OS_WIN)
 #include "ipc/ipc_platform_file.h"
@@ -71,8 +71,7 @@ struct PrintMsg_PrintPages_Params {
 
 #define IPC_MESSAGE_START PrintMsgStart
 
-IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType,
-                          printing::MARGIN_TYPE_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType, printing::MARGIN_TYPE_LAST)
 IPC_ENUM_TRAITS_MIN_MAX_VALUE(printing::DuplexMode,
                               printing::UNKNOWN_DUPLEX_MODE,
                               printing::SHORT_EDGE)
@@ -224,7 +223,6 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidPreviewDocument_Params)
   IPC_STRUCT_MEMBER(int, preview_request_id)
 IPC_STRUCT_END()
 
-
 // Messages sent from the browser to the renderer.
 
 // Tells the render view to switch the CSS to print media type, renders every
@@ -235,14 +233,12 @@ IPC_MESSAGE_ROUTED3(PrintMsg_PrintPages,
                     base::string16 /* device name*/)
 
 // Tells the render view that printing is done so it can clean up.
-IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone,
-                    bool /* success */)
+IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, bool /* success */)
 
 // Tells the render view to switch the CSS to print media type, renders every
 // requested pages for print preview using the given |settings|. This gets
 // called multiple times as the user updates settings.
-IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview,
-                    base::DictionaryValue /* settings */)
+IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, base::DictionaryValue /* settings */)
 
 // Messages sent from the renderer to the browser.
 
@@ -279,8 +275,8 @@ IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings,
 
 // you can set the printer
 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_InitSettingWithDeviceName,
-    base::string16, /* device name */
-    PrintMsg_Print_Params /* default_settings */)
+                           base::string16, /* device name */
+                           PrintMsg_Print_Params /* default_settings */)
 
 // The renderer wants to update the current print settings with new
 // |job_settings|.
@@ -297,14 +293,13 @@ IPC_SYNC_MESSAGE_ROUTED2_2(PrintHostMsg_UpdatePrintSettings,
 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint,
                            PrintHostMsg_ScriptedPrint_Params,
                            PrintMsg_PrintPages_Params
-                               /* settings chosen by the user*/)
+                           /* settings chosen by the user*/)
 
 // This is sent when there are invalid printer settings.
 IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError)
 
 // Tell the browser printing failed.
-IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
-                    int /* document cookie */)
+IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, int /* document cookie */)
 
 // Sends back to the browser the complete rendered document (non-draft mode,
 // used for printing) that was requested by a PrintMsg_PrintPreview message.

+ 20 - 28
chromium_src/chrome/common/tts_messages.h

@@ -13,44 +13,38 @@
 #define IPC_MESSAGE_START TtsMsgStart
 
 IPC_STRUCT_TRAITS_BEGIN(TtsUtteranceRequest)
-IPC_STRUCT_TRAITS_MEMBER(id)
-IPC_STRUCT_TRAITS_MEMBER(text)
-IPC_STRUCT_TRAITS_MEMBER(lang)
-IPC_STRUCT_TRAITS_MEMBER(voice)
-IPC_STRUCT_TRAITS_MEMBER(volume)
-IPC_STRUCT_TRAITS_MEMBER(rate)
-IPC_STRUCT_TRAITS_MEMBER(pitch)
+  IPC_STRUCT_TRAITS_MEMBER(id)
+  IPC_STRUCT_TRAITS_MEMBER(text)
+  IPC_STRUCT_TRAITS_MEMBER(lang)
+  IPC_STRUCT_TRAITS_MEMBER(voice)
+  IPC_STRUCT_TRAITS_MEMBER(volume)
+  IPC_STRUCT_TRAITS_MEMBER(rate)
+  IPC_STRUCT_TRAITS_MEMBER(pitch)
 IPC_STRUCT_TRAITS_END()
 
 IPC_STRUCT_TRAITS_BEGIN(TtsVoice)
-IPC_STRUCT_TRAITS_MEMBER(voice_uri)
-IPC_STRUCT_TRAITS_MEMBER(name)
-IPC_STRUCT_TRAITS_MEMBER(lang)
-IPC_STRUCT_TRAITS_MEMBER(local_service)
-IPC_STRUCT_TRAITS_MEMBER(is_default)
+  IPC_STRUCT_TRAITS_MEMBER(voice_uri)
+  IPC_STRUCT_TRAITS_MEMBER(name)
+  IPC_STRUCT_TRAITS_MEMBER(lang)
+  IPC_STRUCT_TRAITS_MEMBER(local_service)
+  IPC_STRUCT_TRAITS_MEMBER(is_default)
 IPC_STRUCT_TRAITS_END()
 
 // Renderer -> Browser messages.
 
 IPC_MESSAGE_CONTROL0(TtsHostMsg_InitializeVoiceList)
-IPC_MESSAGE_CONTROL1(TtsHostMsg_Speak,
-                     TtsUtteranceRequest)
+IPC_MESSAGE_CONTROL1(TtsHostMsg_Speak, TtsUtteranceRequest)
 IPC_MESSAGE_CONTROL0(TtsHostMsg_Pause)
 IPC_MESSAGE_CONTROL0(TtsHostMsg_Resume)
 IPC_MESSAGE_CONTROL0(TtsHostMsg_Cancel)
 
 // Browser -> Renderer messages.
 
-IPC_MESSAGE_CONTROL1(TtsMsg_SetVoiceList,
-                     std::vector<TtsVoice>)
-IPC_MESSAGE_CONTROL1(TtsMsg_DidStartSpeaking,
-                     int /* utterance id */)
-IPC_MESSAGE_CONTROL1(TtsMsg_DidFinishSpeaking,
-                     int /* utterance id */)
-IPC_MESSAGE_CONTROL1(TtsMsg_DidPauseSpeaking,
-                     int /* utterance id */)
-IPC_MESSAGE_CONTROL1(TtsMsg_DidResumeSpeaking,
-                     int /* utterance id */)
+IPC_MESSAGE_CONTROL1(TtsMsg_SetVoiceList, std::vector<TtsVoice>)
+IPC_MESSAGE_CONTROL1(TtsMsg_DidStartSpeaking, int /* utterance id */)
+IPC_MESSAGE_CONTROL1(TtsMsg_DidFinishSpeaking, int /* utterance id */)
+IPC_MESSAGE_CONTROL1(TtsMsg_DidPauseSpeaking, int /* utterance id */)
+IPC_MESSAGE_CONTROL1(TtsMsg_DidResumeSpeaking, int /* utterance id */)
 IPC_MESSAGE_CONTROL2(TtsMsg_WordBoundary,
                      int /* utterance id */,
                      int /* char index */)
@@ -60,10 +54,8 @@ IPC_MESSAGE_CONTROL2(TtsMsg_SentenceBoundary,
 IPC_MESSAGE_CONTROL2(TtsMsg_MarkerEvent,
                      int /* utterance id */,
                      int /* char index */)
-IPC_MESSAGE_CONTROL1(TtsMsg_WasInterrupted,
-                     int /* utterance id */)
-IPC_MESSAGE_CONTROL1(TtsMsg_WasCancelled,
-                     int /* utterance id */)
+IPC_MESSAGE_CONTROL1(TtsMsg_WasInterrupted, int /* utterance id */)
+IPC_MESSAGE_CONTROL1(TtsMsg_WasCancelled, int /* utterance id */)
 IPC_MESSAGE_CONTROL2(TtsMsg_SpeakingErrorOccurred,
                      int /* utterance id */,
                      std::string /* error message */)

+ 1 - 1
chromium_src/chrome/common/widevine_cdm_constants.h

@@ -5,8 +5,8 @@
 #ifndef CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_
 #define CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_
 
-#include "base/macros.h"
 #include "base/files/file_path.h"
+#include "base/macros.h"
 
 extern const char kWidevineCdmPluginExtension[];
 

+ 1 - 1
chromium_src/chrome/renderer/pepper/pepper_flash_font_file_host.h

@@ -23,7 +23,7 @@ namespace ppapi {
 namespace proxy {
 struct SerializedFontDescription;
 }
-}
+}  // namespace ppapi
 
 class PepperFlashFontFileHost : public ppapi::host::ResourceHost {
  public:

+ 2 - 2
chromium_src/chrome/renderer/pepper/pepper_flash_menu_host.h

@@ -16,13 +16,13 @@
 namespace content {
 class RendererPpapiHost;
 struct MenuItem;
-}
+}  // namespace content
 
 namespace ppapi {
 namespace proxy {
 class SerializedFlashMenu;
 }
-}
+}  // namespace ppapi
 
 class PepperFlashMenuHost : public ppapi::host::ResourceHost,
                             public content::ContextMenuClient {

+ 1 - 1
chromium_src/chrome/renderer/pepper/pepper_flash_renderer_host.h

@@ -22,7 +22,7 @@ namespace ppapi {
 namespace proxy {
 struct PPBFlash_DrawGlyphs_Params;
 }
-}
+}  // namespace ppapi
 
 namespace content {
 class RendererPpapiHost;

+ 1 - 1
chromium_src/chrome/renderer/pepper/pepper_shared_memory_message_filter.h

@@ -16,7 +16,7 @@ namespace ppapi {
 namespace proxy {
 class SerializedHandle;
 }
-}
+}  // namespace ppapi
 
 // Implements the backend for shared memory messages from a plugin process.
 class PepperSharedMemoryMessageFilter

+ 5 - 8
chromium_src/chrome/renderer/printing/print_web_view_helper.h

@@ -106,7 +106,6 @@ class PrintWebViewHelper
 #endif  // !DISABLE_BASIC_PRINTING
   void OnPrintPreview(const base::DictionaryValue& settings);
 
-
   // Get |page_size| and |content_area| information from
   // |page_layout_in_points|.
   void GetPageSizeAndContentAreaFromPageLayout(
@@ -131,7 +130,6 @@ class PrintWebViewHelper
   bool RenderPreviewPage(int page_number,
                          const PrintMsg_Print_Params& print_params);
 
-
   // Initialize the print preview document.
   bool CreatePreviewDocument();
 
@@ -154,10 +152,11 @@ class PrintWebViewHelper
                          const base::string16& device_name = base::string16());
 
   // Calculate number of pages in source document.
-  bool CalculateNumberOfPages(blink::WebLocalFrame* frame,
-                              const blink::WebNode& node,
-                              int* number_of_pages,
-                              const base::string16& device_name = base::string16());
+  bool CalculateNumberOfPages(
+      blink::WebLocalFrame* frame,
+      const blink::WebNode& node,
+      int* number_of_pages,
+      const base::string16& device_name = base::string16());
 
   // Update the current print settings with new |passed_job_settings|.
   // |passed_job_settings| dictionary contains print job details such as printer
@@ -166,7 +165,6 @@ class PrintWebViewHelper
                            const blink::WebNode& node,
                            const base::DictionaryValue& passed_job_settings);
 
-
   // Get final print settings from the user.
   // Return false if the user cancels or on error.
   bool GetPrintSettingsFromUser(blink::WebLocalFrame* frame,
@@ -373,7 +371,6 @@ class PrintWebViewHelper
     State state_;
   };
 
-
   bool print_node_in_progress_;
   bool is_loading_;
   bool is_scripted_preview_delayed_;

+ 4 - 5
chromium_src/chrome/renderer/tts_dispatcher.h

@@ -25,9 +25,8 @@ struct TtsVoice;
 // itself when deleted. There can be multiple TtsDispatchers alive at once,
 // so each one routes IPC messages to its WebSpeechSynthesizerClient only if
 // the utterance id (which is globally unique) matches.
-class TtsDispatcher
-    : public blink::WebSpeechSynthesizer,
-      public content::RenderThreadObserver {
+class TtsDispatcher : public blink::WebSpeechSynthesizer,
+                      public content::RenderThreadObserver {
  public:
   explicit TtsDispatcher(blink::WebSpeechSynthesizerClient* client);
   virtual ~TtsDispatcher();
@@ -38,8 +37,8 @@ class TtsDispatcher
 
   // blink::WebSpeechSynthesizer implementation.
   virtual void UpdateVoiceList() override;
-  virtual void Speak(const blink::WebSpeechSynthesisUtterance& utterance)
-      override;
+  virtual void Speak(
+      const blink::WebSpeechSynthesisUtterance& utterance) override;
   virtual void Pause() override;
   virtual void Resume() override;
   virtual void Cancel() override;

+ 1 - 1
chromium_src/components/pdf/renderer/pepper_pdf_host.h

@@ -17,7 +17,7 @@
 namespace content {
 class RenderFrame;
 class RendererPpapiHost;
-}
+}  // namespace content
 
 namespace pdf {
 

+ 8 - 8
chromium_src/extensions/common/url_pattern.h

@@ -47,13 +47,13 @@ class URLPattern {
  public:
   // A collection of scheme bitmasks for use with valid_schemes.
   enum SchemeMasks {
-    SCHEME_NONE       = 0,
-    SCHEME_HTTP       = 1 << 0,
-    SCHEME_HTTPS      = 1 << 1,
-    SCHEME_FILE       = 1 << 2,
-    SCHEME_FTP        = 1 << 3,
-    SCHEME_CHROMEUI   = 1 << 4,
-    SCHEME_EXTENSION  = 1 << 5,
+    SCHEME_NONE = 0,
+    SCHEME_HTTP = 1 << 0,
+    SCHEME_HTTPS = 1 << 1,
+    SCHEME_FILE = 1 << 2,
+    SCHEME_FTP = 1 << 3,
+    SCHEME_CHROMEUI = 1 << 4,
+    SCHEME_EXTENSION = 1 << 5,
     SCHEME_FILESYSTEM = 1 << 6,
 
     // IMPORTANT!
@@ -62,7 +62,7 @@ class URLPattern {
     // implications, third-party extensions should usually not be able to get
     // access to URL patterns initialized this way. If there is a reason
     // for violating this general rule, document why this it safe.
-    SCHEME_ALL      = -1,
+    SCHEME_ALL = -1,
   };
 
   // Error codes returned from Parse().

+ 2 - 3
chromium_src/library_loaders/libspeechd.h

@@ -1,5 +1,6 @@
 // This is generated file. Do not modify directly.
-// Path to the code generator: tools/generate_library_loader/generate_library_loader.py .
+// Path to the code generator:
+// tools/generate_library_loader/generate_library_loader.py .
 
 #ifndef LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBSPEECHD_H
 #define LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBSPEECHD_H
@@ -7,7 +8,6 @@
 #include "third_party/speech-dispatcher/libspeechd.h"
 #define LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBSPEECHD_H_DLOPEN
 
-
 #include <string>
 
 class LibSpeechdLoader {
@@ -35,7 +35,6 @@ class LibSpeechdLoader {
   decltype(&::spd_set_output_module) spd_set_output_module;
   decltype(&::spd_set_language) spd_set_language;
 
-
  private:
   void CleanUp(bool unload);