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

Side by Side Diff: chrome/browser/extensions/api/copresence/copresence_translations.h

Issue 598053003: Switching to C++11 template syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EXTENSIONS_API_COPRESENCE_COPRESENCE_TRANSLATIONS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_COPRESENCE_TRANSLATIONS_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_COPRESENCE_TRANSLATIONS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_COPRESENCE_TRANSLATIONS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 } 28 }
29 29
30 // A 1-1 map of of which app a subscription id belongs to. 30 // A 1-1 map of of which app a subscription id belongs to.
31 // Key = subscription, value = app_id. 31 // Key = subscription, value = app_id.
32 typedef std::map<std::string, std::string> SubscriptionToAppMap; 32 typedef std::map<std::string, std::string> SubscriptionToAppMap;
33 33
34 // Returns report request protocol buffer containing all the operations in the 34 // Returns report request protocol buffer containing all the operations in the
35 // given vector. If parsing any of the operations fails, we return false. 35 // given vector. If parsing any of the operations fails, we return false.
36 bool PrepareReportRequestProto( 36 bool PrepareReportRequestProto(
37 const std::vector<linked_ptr<api::copresence::Operation> >& operations, 37 const std::vector<linked_ptr<api::copresence::Operation>>& operations,
38 const std::string& app_id, 38 const std::string& app_id,
39 SubscriptionToAppMap* apps_by_subscription_id, 39 SubscriptionToAppMap* apps_by_subscription_id,
40 copresence::ReportRequest* request); 40 copresence::ReportRequest* request);
41 41
42 } // namespace extensions 42 } // namespace extensions
43 43
44 #endif // CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_COPRESENCE_TRANSLATIONS_H_ 44 #endif // CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_COPRESENCE_TRANSLATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698