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

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

Issue 1499793003: Fix classes that have too many virtuals for inline constructors. Base URL: https://chromium.googlesource.com/chromium/src.git@enable-virtuals-as-complexity
Patch Set: Finish fixing the codebase that's accessible from Linux. Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_CHILD_PROCESS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_OBSERVER_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 30 matching lines...) Expand all
41 virtual void BrowserChildProcessKilled(const ChildProcessData& data, 41 virtual void BrowserChildProcessKilled(const ChildProcessData& data,
42 int exit_code) {} 42 int exit_code) {}
43 43
44 // Called when an instance of a particular child is created in a page. If one 44 // Called when an instance of a particular child is created in a page. If one
45 // page contains several regions rendered by the same child, this will be 45 // page contains several regions rendered by the same child, this will be
46 // called once for each region during the page load. 46 // called once for each region during the page load.
47 virtual void BrowserChildProcessInstanceCreated( 47 virtual void BrowserChildProcessInstanceCreated(
48 const ChildProcessData& data) {} 48 const ChildProcessData& data) {}
49 49
50 protected: 50 protected:
51 BrowserChildProcessObserver() = default;
51 // The observer can be destroyed on any thread. 52 // The observer can be destroyed on any thread.
52 virtual ~BrowserChildProcessObserver() {} 53 virtual ~BrowserChildProcessObserver() {}
53 54
54 static void Add(BrowserChildProcessObserver* observer); 55 static void Add(BrowserChildProcessObserver* observer);
55 static void Remove(BrowserChildProcessObserver* observer); 56 static void Remove(BrowserChildProcessObserver* observer);
56 }; 57 };
57 58
58 } // namespace content 59 } // namespace content
59 60
60 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_OBSERVER_H_ 61 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698