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

Side by Side Diff: content/public/common/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_CHILD_PROCESS_HOST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_DELEGATE_H_
6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_DELEGATE_H_
7 #pragma once
8 7
9 #include <string> 8 #include <string>
10 9
11 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
12 #include "ipc/ipc_listener.h" 11 #include "ipc/ipc_listener.h"
13 12
14 namespace content { 13 namespace content {
15 14
16 // Interface that all users of ChildProcessHost need to provide. 15 // Interface that all users of ChildProcessHost need to provide.
17 class ChildProcessHostDelegate : public IPC::Listener { 16 class ChildProcessHostDelegate : public IPC::Listener {
18 public: 17 public:
19 virtual ~ChildProcessHostDelegate() {} 18 virtual ~ChildProcessHostDelegate() {}
20 19
21 // Delegates return true if it's ok to shut down the child process (which is 20 // Delegates return true if it's ok to shut down the child process (which is
22 // the default return value). The exception is if the host is in the middle of 21 // the default return value). The exception is if the host is in the middle of
23 // sending a request to the process, in which case the other side might think 22 // sending a request to the process, in which case the other side might think
24 // it's ok to shutdown, when really it's not. 23 // it's ok to shutdown, when really it's not.
25 CONTENT_EXPORT virtual bool CanShutdown(); 24 CONTENT_EXPORT virtual bool CanShutdown();
26 25
27 // Called when the child process unexpected closes the IPC channel. Delegates 26 // Called when the child process unexpected closes the IPC channel. Delegates
28 // would normally delete the object in this case. 27 // would normally delete the object in this case.
29 virtual void OnChildDisconnected() {} 28 virtual void OnChildDisconnected() {}
30 }; 29 };
31 30
32 }; // namespace content 31 }; // namespace content
33 32
34 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_DELEGATE_H_ 33 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/common/child_process_host.h ('k') | content/public/common/child_process_sandbox_support_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698