| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual void Shutdown(); | 80 virtual void Shutdown(); |
| 81 | 81 |
| 82 // IPC::Sender implementation: | 82 // IPC::Sender implementation: |
| 83 bool Send(IPC::Message* msg) override; | 83 bool Send(IPC::Message* msg) override; |
| 84 | 84 |
| 85 // ChildThread implementation: | 85 // ChildThread implementation: |
| 86 #if defined(OS_WIN) | 86 #if defined(OS_WIN) |
| 87 void PreCacheFont(const LOGFONT& log_font) override; | 87 void PreCacheFont(const LOGFONT& log_font) override; |
| 88 void ReleaseCachedFonts() override; | 88 void ReleaseCachedFonts() override; |
| 89 #endif | 89 #endif |
| 90 IPC::AttachmentBroker* GetAttachmentBroker() override; | |
| 91 | 90 |
| 92 IPC::SyncChannel* channel() { return channel_.get(); } | 91 IPC::SyncChannel* channel() { return channel_.get(); } |
| 93 | 92 |
| 94 MessageRouter* GetRouter(); | 93 MessageRouter* GetRouter(); |
| 95 | 94 |
| 96 // Allocates a block of shared memory of the given size. Returns NULL on | 95 // Allocates a block of shared memory of the given size. Returns NULL on |
| 97 // failure. | 96 // failure. |
| 98 // Note: On posix, this requires a sync IPC to the browser process, | 97 // Note: On posix, this requires a sync IPC to the browser process, |
| 99 // but on windows the child process directly allocates the block. | 98 // but on windows the child process directly allocates the block. |
| 100 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t buf_size); | 99 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t buf_size); |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 326 |
| 328 private: | 327 private: |
| 329 struct Options options_; | 328 struct Options options_; |
| 330 | 329 |
| 331 DISALLOW_COPY_AND_ASSIGN(Builder); | 330 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 332 }; | 331 }; |
| 333 | 332 |
| 334 } // namespace content | 333 } // namespace content |
| 335 | 334 |
| 336 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 335 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
| OLD | NEW |