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

Side by Side Diff: chrome/common/media_router/route_request_result.h

Issue 2771413003: Move c/b/media/router/mojo/*.mojom to chrome/common/media_router/mojo/*.mojom (Closed)
Patch Set: Rebase Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_ 5 #ifndef CHROME_COMMON_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_ 6 #define CHROME_COMMON_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace media_router { 14 namespace media_router {
15 15
16 class MediaRoute; 16 class MediaRoute;
(...skipping 24 matching lines...) Expand all
41 OK = 1, 41 OK = 1,
42 TIMED_OUT = 2, 42 TIMED_OUT = 2,
43 ROUTE_NOT_FOUND = 3, 43 ROUTE_NOT_FOUND = 3,
44 SINK_NOT_FOUND = 4, 44 SINK_NOT_FOUND = 4,
45 INVALID_ORIGIN = 5, 45 INVALID_ORIGIN = 5,
46 INCOGNITO_MISMATCH = 6, 46 INCOGNITO_MISMATCH = 6,
47 NO_SUPPORTED_PROVIDER = 7, 47 NO_SUPPORTED_PROVIDER = 7,
48 CANCELLED = 8, 48 CANCELLED = 8,
49 // New values must be added here. 49 // New values must be added here.
50 50
51 TOTAL_COUNT = 9 // The total number of values. 51 TOTAL_COUNT = 9 // The total number of values.
52 }; 52 };
53 53
54 static std::unique_ptr<RouteRequestResult> FromSuccess( 54 static std::unique_ptr<RouteRequestResult> FromSuccess(
55 const MediaRoute& route, 55 const MediaRoute& route,
56 const std::string& presentation_id); 56 const std::string& presentation_id);
57 static std::unique_ptr<RouteRequestResult> FromError(const std::string& error, 57 static std::unique_ptr<RouteRequestResult> FromError(const std::string& error,
58 ResultCode result_code); 58 ResultCode result_code);
59 RouteRequestResult(std::unique_ptr<MediaRoute> route, 59 RouteRequestResult(std::unique_ptr<MediaRoute> route,
60 const std::string& presentation_id, 60 const std::string& presentation_id,
61 const std::string& error, 61 const std::string& error,
(...skipping 14 matching lines...) Expand all
76 std::string presentation_id_; 76 std::string presentation_id_;
77 GURL presentation_url_; 77 GURL presentation_url_;
78 std::string error_; 78 std::string error_;
79 ResultCode result_code_; 79 ResultCode result_code_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(RouteRequestResult); 81 DISALLOW_COPY_AND_ASSIGN(RouteRequestResult);
82 }; 82 };
83 83
84 } // namespace media_router 84 } // namespace media_router
85 85
86 #endif // CHROME_BROWSER_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_ 86 #endif // CHROME_COMMON_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698