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

Side by Side Diff: content/browser/utility_process_host_impl.h

Issue 637183002: Replace FINAL and OVERRIDE with their C++11 counterparts in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch 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
« no previous file with comments | « content/browser/udev_linux.h ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 public: 34 public:
35 static void RegisterUtilityMainThreadFactory( 35 static void RegisterUtilityMainThreadFactory(
36 UtilityMainThreadFactoryFunction create); 36 UtilityMainThreadFactoryFunction create);
37 37
38 UtilityProcessHostImpl( 38 UtilityProcessHostImpl(
39 const scoped_refptr<UtilityProcessHostClient>& client, 39 const scoped_refptr<UtilityProcessHostClient>& client,
40 const scoped_refptr<base::SequencedTaskRunner>& client_task_runner); 40 const scoped_refptr<base::SequencedTaskRunner>& client_task_runner);
41 virtual ~UtilityProcessHostImpl(); 41 virtual ~UtilityProcessHostImpl();
42 42
43 // UtilityProcessHost implementation: 43 // UtilityProcessHost implementation:
44 virtual bool Send(IPC::Message* message) OVERRIDE; 44 virtual bool Send(IPC::Message* message) override;
45 virtual bool StartBatchMode() OVERRIDE; 45 virtual bool StartBatchMode() override;
46 virtual void EndBatchMode() OVERRIDE; 46 virtual void EndBatchMode() override;
47 virtual void SetExposedDir(const base::FilePath& dir) OVERRIDE; 47 virtual void SetExposedDir(const base::FilePath& dir) override;
48 virtual void EnableMDns() OVERRIDE; 48 virtual void EnableMDns() override;
49 virtual void DisableSandbox() OVERRIDE; 49 virtual void DisableSandbox() override;
50 #if defined(OS_WIN) 50 #if defined(OS_WIN)
51 virtual void ElevatePrivileges() OVERRIDE; 51 virtual void ElevatePrivileges() override;
52 #endif 52 #endif
53 virtual const ChildProcessData& GetData() OVERRIDE; 53 virtual const ChildProcessData& GetData() override;
54 #if defined(OS_POSIX) 54 #if defined(OS_POSIX)
55 virtual void SetEnv(const base::EnvironmentMap& env) OVERRIDE; 55 virtual void SetEnv(const base::EnvironmentMap& env) override;
56 #endif 56 #endif
57 57
58 void set_child_flags(int flags) { child_flags_ = flags; } 58 void set_child_flags(int flags) { child_flags_ = flags; }
59 59
60 private: 60 private:
61 // Starts a process if necessary. Returns true if it succeeded or a process 61 // Starts a process if necessary. Returns true if it succeeded or a process
62 // has already been started via StartBatchMode(). 62 // has already been started via StartBatchMode().
63 bool StartProcess(); 63 bool StartProcess();
64 64
65 // BrowserChildProcessHost: 65 // BrowserChildProcessHost:
66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 66 virtual bool OnMessageReceived(const IPC::Message& message) override;
67 virtual void OnProcessLaunchFailed() OVERRIDE; 67 virtual void OnProcessLaunchFailed() override;
68 virtual void OnProcessCrashed(int exit_code) OVERRIDE; 68 virtual void OnProcessCrashed(int exit_code) override;
69 69
70 // A pointer to our client interface, who will be informed of progress. 70 // A pointer to our client interface, who will be informed of progress.
71 scoped_refptr<UtilityProcessHostClient> client_; 71 scoped_refptr<UtilityProcessHostClient> client_;
72 scoped_refptr<base::SequencedTaskRunner> client_task_runner_; 72 scoped_refptr<base::SequencedTaskRunner> client_task_runner_;
73 // True when running in batch mode, i.e., StartBatchMode() has been called 73 // True when running in batch mode, i.e., StartBatchMode() has been called
74 // and the utility process will run until EndBatchMode(). 74 // and the utility process will run until EndBatchMode().
75 bool is_batch_mode_; 75 bool is_batch_mode_;
76 76
77 base::FilePath exposed_dir_; 77 base::FilePath exposed_dir_;
78 78
(...skipping 18 matching lines...) Expand all
97 97
98 // Used in single-process mode instead of process_. 98 // Used in single-process mode instead of process_.
99 scoped_ptr<base::Thread> in_process_thread_; 99 scoped_ptr<base::Thread> in_process_thread_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHostImpl); 101 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHostImpl);
102 }; 102 };
103 103
104 } // namespace content 104 } // namespace content
105 105
106 #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ 106 #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/udev_linux.h ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698