| OLD | NEW | 
|---|
| 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_CHILD_CHILD_THREAD_IMPL_H_ | 5 #ifndef CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 
| 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 
| 7 | 7 | 
| 8 #include <stddef.h> | 8 #include <stddef.h> | 
| 9 #include <stdint.h> | 9 #include <stdint.h> | 
| 10 | 10 | 
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 191   // |false| on ChildThreadImpl construction. | 191   // |false| on ChildThreadImpl construction. | 
| 192   void StartServiceManagerConnection(); | 192   void StartServiceManagerConnection(); | 
| 193 | 193 | 
| 194   virtual bool OnControlMessageReceived(const IPC::Message& msg); | 194   virtual bool OnControlMessageReceived(const IPC::Message& msg); | 
| 195   virtual void OnProcessBackgrounded(bool backgrounded); | 195   virtual void OnProcessBackgrounded(bool backgrounded); | 
| 196   virtual void OnProcessPurgeAndSuspend(); | 196   virtual void OnProcessPurgeAndSuspend(); | 
| 197   virtual void OnProcessResume(); | 197   virtual void OnProcessResume(); | 
| 198 | 198 | 
| 199   // IPC::Listener implementation: | 199   // IPC::Listener implementation: | 
| 200   bool OnMessageReceived(const IPC::Message& msg) override; | 200   bool OnMessageReceived(const IPC::Message& msg) override; | 
|  | 201   void OnAssociatedInterfaceRequest( | 
|  | 202       const std::string& interface_name, | 
|  | 203       mojo::ScopedInterfaceEndpointHandle handle) override; | 
| 201   void OnChannelConnected(int32_t peer_pid) override; | 204   void OnChannelConnected(int32_t peer_pid) override; | 
| 202   void OnChannelError() override; | 205   void OnChannelError() override; | 
| 203 | 206 | 
| 204   bool IsInBrowserProcess() const; | 207   bool IsInBrowserProcess() const; | 
| 205   scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner(); | 208   scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner(); | 
| 206 | 209 | 
| 207  private: | 210  private: | 
| 208   class ChildThreadMessageRouter : public IPC::MessageRouter { | 211   class ChildThreadMessageRouter : public IPC::MessageRouter { | 
| 209    public: | 212    public: | 
| 210     // |sender| must outlive this object. | 213     // |sender| must outlive this object. | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 228   void OnShutdown(); | 231   void OnShutdown(); | 
| 229   void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); | 232   void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); | 
| 230   void OnGetChildProfilerData(int sequence_number, int current_profiling_phase); | 233   void OnGetChildProfilerData(int sequence_number, int current_profiling_phase); | 
| 231   void OnProfilingPhaseCompleted(int profiling_phase); | 234   void OnProfilingPhaseCompleted(int profiling_phase); | 
| 232 #ifdef IPC_MESSAGE_LOG_ENABLED | 235 #ifdef IPC_MESSAGE_LOG_ENABLED | 
| 233   void OnSetIPCLoggingEnabled(bool enable); | 236   void OnSetIPCLoggingEnabled(bool enable); | 
| 234 #endif | 237 #endif | 
| 235 | 238 | 
| 236   void EnsureConnected(); | 239   void EnsureConnected(); | 
| 237 | 240 | 
| 238   void OnRouteProviderRequest(mojom::RouteProviderAssociatedRequest request); |  | 
| 239 |  | 
| 240   // mojom::RouteProvider: | 241   // mojom::RouteProvider: | 
| 241   void GetRoute( | 242   void GetRoute( | 
| 242       int32_t routing_id, | 243       int32_t routing_id, | 
| 243       mojom::AssociatedInterfaceProviderAssociatedRequest request) override; | 244       mojom::AssociatedInterfaceProviderAssociatedRequest request) override; | 
| 244 | 245 | 
| 245   // mojom::AssociatedInterfaceProvider: | 246   // mojom::AssociatedInterfaceProvider: | 
| 246   void GetAssociatedInterface( | 247   void GetAssociatedInterface( | 
| 247       const std::string& name, | 248       const std::string& name, | 
| 248       mojom::AssociatedInterfaceAssociatedRequest request) override; | 249       mojom::AssociatedInterfaceAssociatedRequest request) override; | 
| 249 | 250 | 
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 344 | 345 | 
| 345  private: | 346  private: | 
| 346   struct Options options_; | 347   struct Options options_; | 
| 347 | 348 | 
| 348   DISALLOW_COPY_AND_ASSIGN(Builder); | 349   DISALLOW_COPY_AND_ASSIGN(Builder); | 
| 349 }; | 350 }; | 
| 350 | 351 | 
| 351 }  // namespace content | 352 }  // namespace content | 
| 352 | 353 | 
| 353 #endif  // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 354 #endif  // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 
| OLD | NEW | 
|---|