| 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 #include "content/shell/renderer/shell_content_renderer_client.h" | 5 #include "content/shell/renderer/shell_content_renderer_client.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 void CreateFolder(const CreateFolderCallback& callback) override { | 66 void CreateFolder(const CreateFolderCallback& callback) override { |
| 67 NOTREACHED(); | 67 NOTREACHED(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void GetRequestorName(const GetRequestorNameCallback& callback) override { | 70 void GetRequestorName(const GetRequestorNameCallback& callback) override { |
| 71 callback.Run("Not implemented."); | 71 callback.Run("Not implemented."); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void CreateSharedBuffer(const std::string& message, |
| 75 const CreateSharedBufferCallback& callback) override { |
| 76 NOTREACHED(); |
| 77 } |
| 78 |
| 74 mojo::Binding<mojom::TestMojoService> binding_; | 79 mojo::Binding<mojom::TestMojoService> binding_; |
| 75 | 80 |
| 76 DISALLOW_COPY_AND_ASSIGN(TestMojoServiceImpl); | 81 DISALLOW_COPY_AND_ASSIGN(TestMojoServiceImpl); |
| 77 }; | 82 }; |
| 78 | 83 |
| 79 void CreateTestMojoService(mojom::TestMojoServiceRequest request) { | 84 void CreateTestMojoService(mojom::TestMojoServiceRequest request) { |
| 80 // Owns itself. | 85 // Owns itself. |
| 81 new TestMojoServiceImpl(std::move(request)); | 86 new TestMojoServiceImpl(std::move(request)); |
| 82 } | 87 } |
| 83 | 88 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 128 } |
| 124 } | 129 } |
| 125 | 130 |
| 126 void ShellContentRendererClient::ExposeInterfacesToBrowser( | 131 void ShellContentRendererClient::ExposeInterfacesToBrowser( |
| 127 shell::InterfaceRegistry* interface_registry) { | 132 shell::InterfaceRegistry* interface_registry) { |
| 128 interface_registry->AddInterface<mojom::TestMojoService>( | 133 interface_registry->AddInterface<mojom::TestMojoService>( |
| 129 base::Bind(&CreateTestMojoService)); | 134 base::Bind(&CreateTestMojoService)); |
| 130 } | 135 } |
| 131 | 136 |
| 132 } // namespace content | 137 } // namespace content |
| OLD | NEW |