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

Side by Side Diff: chrome/common/extensions/permissions/permission_message.h

Issue 11038021: Implement Chrome Extension TabCapture API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, add command line flag Created 8 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PERMISSIONS_PERMISSION_MESSAGE_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 kInput, 44 kInput,
45 kAudioCapture, 45 kAudioCapture,
46 kVideoCapture, 46 kVideoCapture,
47 kDownloads, 47 kDownloads,
48 kFileSystemWrite, 48 kFileSystemWrite,
49 kMediaGalleriesAllGalleries, 49 kMediaGalleriesAllGalleries,
50 kSerial, 50 kSerial,
51 kSocketAnyHost, 51 kSocketAnyHost,
52 kSocketDomainHosts, 52 kSocketDomainHosts,
53 kSocketSpecificHosts, 53 kSocketSpecificHosts,
54 kTabCapture,
54 kEnumBoundary 55 kEnumBoundary
55 }; 56 };
56 57
57 // Creates the corresponding permission message for a list of hosts. This is 58 // Creates the corresponding permission message for a list of hosts. This is
58 // simply a convenience method around the constructor, since the messages 59 // simply a convenience method around the constructor, since the messages
59 // change depending on what hosts are present. 60 // change depending on what hosts are present.
60 static PermissionMessage CreateFromHostList( 61 static PermissionMessage CreateFromHostList(
61 const std::set<std::string>& hosts); 62 const std::set<std::string>& hosts);
62 63
63 // Creates the corresponding permission message. 64 // Creates the corresponding permission message.
(...skipping 16 matching lines...) Expand all
80 private: 81 private:
81 ID id_; 82 ID id_;
82 string16 message_; 83 string16 message_;
83 }; 84 };
84 85
85 typedef std::vector<PermissionMessage> PermissionMessages; 86 typedef std::vector<PermissionMessage> PermissionMessages;
86 87
87 } // namespace extensions 88 } // namespace extensions
88 89
89 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ 90 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698