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

Side by Side Diff: chrome/common/extensions/file_handler_info.h

Issue 64803005: File association for app shims. (Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Change FileHandlersInfo to hold a copy. Created 6 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 | Annotate | Revision Log
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_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_
6 #define CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_ 6 #define CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 11 matching lines...) Expand all
22 std::set<std::string> extensions; 22 std::set<std::string> extensions;
23 23
24 // MIME types associated with this handler. 24 // MIME types associated with this handler.
25 std::set<std::string> types; 25 std::set<std::string> types;
26 }; 26 };
27 27
28 struct FileHandlersInfo { 28 struct FileHandlersInfo {
29 explicit FileHandlersInfo(const std::vector<FileHandlerInfo>* handlers); 29 explicit FileHandlersInfo(const std::vector<FileHandlerInfo>* handlers);
30 ~FileHandlersInfo(); 30 ~FileHandlersInfo();
31 31
32 const std::vector<FileHandlerInfo>* handlers; 32 std::vector<FileHandlerInfo> handlers;
33 }; 33 };
34 34
35 } // namespace extensions 35 } // namespace extensions
36 36
37 #endif // CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_ 37 #endif // CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698