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

Side by Side Diff: chrome/common/child_thread.h

Issue 6366019: Part 1 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Nico's changes that I patched in for testing. Created 9 years, 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_COMMON_CHILD_THREAD_H_ 5 #ifndef CHROME_COMMON_CHILD_THREAD_H_
6 #define CHROME_COMMON_CHILD_THREAD_H_ 6 #define CHROME_COMMON_CHILD_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // Returns the one child thread. 68 // Returns the one child thread.
69 static ChildThread* current(); 69 static ChildThread* current();
70 70
71 protected: 71 protected:
72 friend class ChildProcess; 72 friend class ChildProcess;
73 73
74 // Called when the process refcount is 0. 74 // Called when the process refcount is 0.
75 void OnProcessFinalRelease(); 75 void OnProcessFinalRelease();
76 76
77 virtual bool OnControlMessageReceived(const IPC::Message& msg) { 77 virtual bool OnControlMessageReceived(const IPC::Message& msg);
78 return false;
79 }
80 virtual void OnAskBeforeShutdown(); 78 virtual void OnAskBeforeShutdown();
81 virtual void OnShutdown(); 79 virtual void OnShutdown();
82 80
83 #ifdef IPC_MESSAGE_LOG_ENABLED 81 #ifdef IPC_MESSAGE_LOG_ENABLED
84 virtual void OnSetIPCLoggingEnabled(bool enable); 82 virtual void OnSetIPCLoggingEnabled(bool enable);
85 #endif 83 #endif
86 84
87 IPC::SyncChannel* channel() { return channel_.get(); } 85 IPC::SyncChannel* channel() { return channel_.get(); }
88 86
89 void set_on_channel_error_called(bool on_channel_error_called) { 87 void set_on_channel_error_called(bool on_channel_error_called) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 MessageLoop* message_loop_; 122 MessageLoop* message_loop_;
125 123
126 scoped_ptr<NotificationService> notification_service_; 124 scoped_ptr<NotificationService> notification_service_;
127 125
128 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; 126 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_;
129 127
130 DISALLOW_COPY_AND_ASSIGN(ChildThread); 128 DISALLOW_COPY_AND_ASSIGN(ChildThread);
131 }; 129 };
132 130
133 #endif // CHROME_COMMON_CHILD_THREAD_H_ 131 #endif // CHROME_COMMON_CHILD_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698