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

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

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_
7 #pragma once
8 7
9 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
10 #include "ipc/ipc_listener.h" 9 #include "ipc/ipc_listener.h"
11 10
12 namespace content { 11 namespace content {
13 12
14 // Interface that all users of BrowserChildProcessHost need to provide. 13 // Interface that all users of BrowserChildProcessHost need to provide.
15 class CONTENT_EXPORT BrowserChildProcessHostDelegate : public IPC::Listener { 14 class CONTENT_EXPORT BrowserChildProcessHostDelegate : public IPC::Listener {
16 public: 15 public:
17 virtual ~BrowserChildProcessHostDelegate() {} 16 virtual ~BrowserChildProcessHostDelegate() {}
18 17
19 // Delegates return true if it's ok to shut down the child process (which is 18 // Delegates return true if it's ok to shut down the child process (which is
20 // the default return value). The exception is if the host is in the middle of 19 // the default return value). The exception is if the host is in the middle of
21 // sending a request to the process, in which case the other side might think 20 // sending a request to the process, in which case the other side might think
22 // it's ok to shutdown, when really it's not. 21 // it's ok to shutdown, when really it's not.
23 virtual bool CanShutdown(); 22 virtual bool CanShutdown();
24 23
25 // Called when the process has been started. 24 // Called when the process has been started.
26 virtual void OnProcessLaunched() {} 25 virtual void OnProcessLaunched() {}
27 26
28 // Called if the process crashed. |exit_code| is the status returned when the 27 // Called if the process crashed. |exit_code| is the status returned when the
29 // process crashed (for posix, as returned from waitpid(), for Windows, as 28 // process crashed (for posix, as returned from waitpid(), for Windows, as
30 // returned from GetExitCodeProcess()). 29 // returned from GetExitCodeProcess()).
31 virtual void OnProcessCrashed(int exit_code) {} 30 virtual void OnProcessCrashed(int exit_code) {}
32 }; 31 };
33 32
34 }; // namespace content 33 }; // namespace content
35 34
36 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ 35 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_child_process_host.h ('k') | content/public/browser/browser_child_process_host_iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698