Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: content/public/browser/web_contents_observer.h

Issue 629203002: Replace OVERRIDE and FINAL with override and final in content/public/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/process/kill.h" 8 #include "base/process/kill.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 const std::vector<AXEventNotificationDetails>& details) {} 315 const std::vector<AXEventNotificationDetails>& details) {}
316 316
317 // Invoked when theme color is changed to |theme_color|. 317 // Invoked when theme color is changed to |theme_color|.
318 virtual void DidChangeThemeColor(SkColor theme_color) {} 318 virtual void DidChangeThemeColor(SkColor theme_color) {}
319 319
320 // Invoked if an IPC message is coming from a specific RenderFrameHost. 320 // Invoked if an IPC message is coming from a specific RenderFrameHost.
321 virtual bool OnMessageReceived(const IPC::Message& message, 321 virtual bool OnMessageReceived(const IPC::Message& message,
322 RenderFrameHost* render_frame_host); 322 RenderFrameHost* render_frame_host);
323 323
324 // IPC::Listener implementation. 324 // IPC::Listener implementation.
325 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 325 virtual bool OnMessageReceived(const IPC::Message& message) override;
326 326
327 // IPC::Sender implementation. 327 // IPC::Sender implementation.
328 virtual bool Send(IPC::Message* message) OVERRIDE; 328 virtual bool Send(IPC::Message* message) override;
329 int routing_id() const; 329 int routing_id() const;
330 330
331 WebContents* web_contents() const; 331 WebContents* web_contents() const;
332 332
333 protected: 333 protected:
334 // Use this constructor when the object is tied to a single WebContents for 334 // Use this constructor when the object is tied to a single WebContents for
335 // its entire lifetime. 335 // its entire lifetime.
336 explicit WebContentsObserver(WebContents* web_contents); 336 explicit WebContentsObserver(WebContents* web_contents);
337 337
338 // Use this constructor when the object wants to observe a WebContents for 338 // Use this constructor when the object wants to observe a WebContents for
(...skipping 12 matching lines...) Expand all
351 void ResetWebContents(); 351 void ResetWebContents();
352 352
353 WebContentsImpl* web_contents_; 353 WebContentsImpl* web_contents_;
354 354
355 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 355 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
356 }; 356 };
357 357
358 } // namespace content 358 } // namespace content
359 359
360 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 360 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/desktop_media_id.cc ('k') | content/public/renderer/platform_event_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698