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 "remoting/host/desktop_session_agent.h" | 5 #include "remoting/host/desktop_session_agent.h" |
6 | 6 |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "ipc/ipc_channel_proxy.h" | 10 #include "ipc/ipc_channel_proxy.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // Routes local clipboard events though the IPC channel to the network process. | 37 // Routes local clipboard events though the IPC channel to the network process. |
38 class DesktopSesssionClipboardStub : public protocol::ClipboardStub { | 38 class DesktopSesssionClipboardStub : public protocol::ClipboardStub { |
39 public: | 39 public: |
40 explicit DesktopSesssionClipboardStub( | 40 explicit DesktopSesssionClipboardStub( |
41 scoped_refptr<DesktopSessionAgent> desktop_session_agent); | 41 scoped_refptr<DesktopSessionAgent> desktop_session_agent); |
42 virtual ~DesktopSesssionClipboardStub(); | 42 virtual ~DesktopSesssionClipboardStub(); |
43 | 43 |
44 // protocol::ClipboardStub implementation. | 44 // protocol::ClipboardStub implementation. |
45 virtual void InjectClipboardEvent( | 45 virtual void InjectClipboardEvent( |
46 const protocol::ClipboardEvent& event) OVERRIDE; | 46 const protocol::ClipboardEvent& event) override; |
47 | 47 |
48 private: | 48 private: |
49 scoped_refptr<DesktopSessionAgent> desktop_session_agent_; | 49 scoped_refptr<DesktopSessionAgent> desktop_session_agent_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(DesktopSesssionClipboardStub); | 51 DISALLOW_COPY_AND_ASSIGN(DesktopSesssionClipboardStub); |
52 }; | 52 }; |
53 | 53 |
54 DesktopSesssionClipboardStub::DesktopSesssionClipboardStub( | 54 DesktopSesssionClipboardStub::DesktopSesssionClipboardStub( |
55 scoped_refptr<DesktopSessionAgent> desktop_session_agent) | 55 scoped_refptr<DesktopSessionAgent> desktop_session_agent) |
56 : desktop_session_agent_(desktop_session_agent) { | 56 : desktop_session_agent_(desktop_session_agent) { |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 void DesktopSessionAgent::OnSharedBufferDeleted(int id) { | 582 void DesktopSessionAgent::OnSharedBufferDeleted(int id) { |
583 DCHECK(video_capture_task_runner_->BelongsToCurrentThread()); | 583 DCHECK(video_capture_task_runner_->BelongsToCurrentThread()); |
584 DCHECK(id != 0); | 584 DCHECK(id != 0); |
585 | 585 |
586 shared_buffers_--; | 586 shared_buffers_--; |
587 DCHECK_GE(shared_buffers_, 0); | 587 DCHECK_GE(shared_buffers_, 0); |
588 SendToNetwork(new ChromotingDesktopNetworkMsg_ReleaseSharedBuffer(id)); | 588 SendToNetwork(new ChromotingDesktopNetworkMsg_ReleaseSharedBuffer(id)); |
589 } | 589 } |
590 | 590 |
591 } // namespace remoting | 591 } // namespace remoting |
OLD | NEW |