Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: content/public/browser/presentation_session.h

Issue 1572433002: [Media Router] Add Connecting state to PresentationConnection to bring align with spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ 6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 enum PresentationConnectionState { 14 enum PresentationConnectionState {
15 PRESENTATION_CONNECTION_STATE_CONNECTING,
15 PRESENTATION_CONNECTION_STATE_CONNECTED, 16 PRESENTATION_CONNECTION_STATE_CONNECTED,
16 PRESENTATION_CONNECTION_STATE_CLOSED, 17 PRESENTATION_CONNECTION_STATE_CLOSED,
17 PRESENTATION_CONNECTION_STATE_TERMINATED 18 PRESENTATION_CONNECTION_STATE_TERMINATED
18 }; 19 };
19 20
20 // TODO(imcheng): Rename to PresentationConnectionInfo. 21 // TODO(imcheng): Rename to PresentationConnectionInfo.
21 // Represents a presentation session that has been established via either 22 // Represents a presentation session that has been established via either
22 // browser actions or Presentation API. 23 // browser actions or Presentation API.
23 struct CONTENT_EXPORT PresentationSessionInfo { 24 struct CONTENT_EXPORT PresentationSessionInfo {
24 PresentationSessionInfo(const std::string& presentation_url, 25 PresentationSessionInfo(const std::string& presentation_url,
(...skipping 18 matching lines...) Expand all
43 const std::string& message); 44 const std::string& message);
44 ~PresentationError(); 45 ~PresentationError();
45 46
46 const PresentationErrorType error_type; 47 const PresentationErrorType error_type;
47 const std::string message; 48 const std::string message;
48 }; 49 };
49 50
50 } // namespace content 51 } // namespace content
51 52
52 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ 53 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_
OLDNEW
« no previous file with comments | « content/common/presentation/presentation_service.mojom ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698