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

Side by Side Diff: chrome/browser/media/router/route_request_result.h

Issue 2112673002: Removing references to Off the Record from MediaRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More refactoring on rebased code Created 4 years, 5 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_BROWSER_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 23 matching lines...) Expand all
34 // - RouteRequestResultCode in media_router.mojom 34 // - RouteRequestResultCode in media_router.mojom
35 // - MediaRouteProviderResult enum in tools/metrics/histograms.xml 35 // - MediaRouteProviderResult enum in tools/metrics/histograms.xml
36 // - mr.RouteRequestResultCode in route_request_error.js 36 // - mr.RouteRequestResultCode in route_request_error.js
37 enum ResultCode { 37 enum ResultCode {
38 UNKNOWN_ERROR = 0, 38 UNKNOWN_ERROR = 0,
39 OK = 1, 39 OK = 1,
40 TIMED_OUT = 2, 40 TIMED_OUT = 2,
41 ROUTE_NOT_FOUND = 3, 41 ROUTE_NOT_FOUND = 3,
42 SINK_NOT_FOUND = 4, 42 SINK_NOT_FOUND = 4,
43 INVALID_ORIGIN = 5, 43 INVALID_ORIGIN = 5,
44 OFF_THE_RECORD_MISMATCH = 6, 44 INCOGNITO_MISMATCH = 6,
45 NO_SUPPORTED_PROVIDER = 7, 45 NO_SUPPORTED_PROVIDER = 7,
46 // New values must be added here. 46 // New values must be added here.
47 47
48 TOTAL_COUNT = 8 // The total number of values. 48 TOTAL_COUNT = 8 // The total number of values.
49 }; 49 };
50 50
51 static std::unique_ptr<RouteRequestResult> FromSuccess( 51 static std::unique_ptr<RouteRequestResult> FromSuccess(
52 std::unique_ptr<MediaRoute> route, 52 std::unique_ptr<MediaRoute> route,
53 const std::string& presentation_id); 53 const std::string& presentation_id);
54 static std::unique_ptr<RouteRequestResult> FromError(const std::string& error, 54 static std::unique_ptr<RouteRequestResult> FromError(const std::string& error,
(...skipping 18 matching lines...) Expand all
73 std::string presentation_id_; 73 std::string presentation_id_;
74 std::string error_; 74 std::string error_;
75 ResultCode result_code_; 75 ResultCode result_code_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(RouteRequestResult); 77 DISALLOW_COPY_AND_ASSIGN(RouteRequestResult);
78 }; 78 };
79 79
80 } // namespace media_router 80 } // namespace media_router
81 81
82 #endif // CHROME_BROWSER_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_ 82 #endif // CHROME_BROWSER_MEDIA_ROUTER_ROUTE_REQUEST_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698