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

Side by Side Diff: content/public/common/manifest.h

Issue 770023002: Push registration should read a "gcm_user_visible_only" key from the Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « content/public/browser/push_messaging_service.h ('k') | content/public/common/manifest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_PUBLIC_COMMON_MANIFEST_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_MANIFEST_H_
6 #define CONTENT_PUBLIC_COMMON_MANIFEST_H_ 6 #define CONTENT_PUBLIC_COMMON_MANIFEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/nullable_string16.h" 10 #include "base/strings/nullable_string16.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // Empty if the parsing failed, the field was not present, empty or all the 81 // Empty if the parsing failed, the field was not present, empty or all the
82 // icons inside the JSON array were invalid. 82 // icons inside the JSON array were invalid.
83 std::vector<Icon> icons; 83 std::vector<Icon> icons;
84 84
85 // This is a proprietary extension of the web Manifest, double-check that it 85 // This is a proprietary extension of the web Manifest, double-check that it
86 // is okay to use this entry. 86 // is okay to use this entry.
87 // Null if parsing failed or the field was not present. 87 // Null if parsing failed or the field was not present.
88 base::NullableString16 gcm_sender_id; 88 base::NullableString16 gcm_sender_id;
89 89
90 // This is a proprietary extension of the web Manifest, double-check that it
91 // is okay to use this entry.
92 // False if parsing failed or the field was not present.
93 bool gcm_user_visible_only;
94
90 // Maximum length for all the strings inside the Manifest when it is sent over 95 // Maximum length for all the strings inside the Manifest when it is sent over
91 // IPC. The renderer process should truncate the strings before sending the 96 // IPC. The renderer process should truncate the strings before sending the
92 // Manifest and the browser process must do the same when receiving it. 97 // Manifest and the browser process must do the same when receiving it.
93 static const size_t kMaxIPCStringLength; 98 static const size_t kMaxIPCStringLength;
94 }; 99 };
95 100
96 } // namespace content 101 } // namespace content
97 102
98 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ 103 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_
OLDNEW
« no previous file with comments | « content/public/browser/push_messaging_service.h ('k') | content/public/common/manifest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698