OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // If the |request_id| is not associated with the | 51 // If the |request_id| is not associated with the |
52 // outstanding request or any queued request, this method does nothing. | 52 // outstanding request or any queued request, this method does nothing. |
53 // | 53 // |
54 // |request_id| is the request id returned from RequestIdentity. | 54 // |request_id| is the request id returned from RequestIdentity. |
55 void CancelRequest(int request_id); | 55 void CancelRequest(int request_id); |
56 | 56 |
57 protected: | 57 protected: |
58 // For unittest to override. | 58 // For unittest to override. |
59 virtual bool Send(IPC::Message* message); | 59 virtual bool Send(IPC::Message* message); |
60 // RenderProcessObserver implementation. Protected for testing. | 60 // RenderProcessObserver implementation. Protected for testing. |
61 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 61 virtual bool OnControlMessageReceived(const IPC::Message& message) override; |
62 | 62 |
63 private: | 63 private: |
64 struct RequestInfo { | 64 struct RequestInfo { |
65 RequestInfo(int request_id, | 65 RequestInfo(int request_id, |
66 const GURL& origin, | 66 const GURL& origin, |
67 const std::string& identity_name, | 67 const std::string& identity_name, |
68 const std::string& common_name, | 68 const std::string& common_name, |
69 const SuccessCallback& success_callback, | 69 const SuccessCallback& success_callback, |
70 const FailureCallback& failure_callback); | 70 const FailureCallback& failure_callback); |
71 ~RequestInfo(); | 71 ~RequestInfo(); |
(...skipping 17 matching lines...) Expand all Loading... |
89 | 89 |
90 std::deque<RequestInfo> pending_requests_; | 90 std::deque<RequestInfo> pending_requests_; |
91 int next_request_id_; | 91 int next_request_id_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(WebRTCIdentityService); | 93 DISALLOW_COPY_AND_ASSIGN(WebRTCIdentityService); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace content | 96 } // namespace content |
97 | 97 |
98 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ | 98 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ |
OLD | NEW |