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

Side by Side Diff: chrome/utility/chrome_content_utility_client.h

Issue 999003003: Include attributes of zipped binaries in ClientDownloadRequests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zip2
Patch Set: fix ordering of SandboxedZipAnalyzer methods Created 5 years, 9 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 (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_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void OnParseJSON(const std::string& json); 63 void OnParseJSON(const std::string& json);
64 void OnPatchFileBsdiff(const base::FilePath& input_file, 64 void OnPatchFileBsdiff(const base::FilePath& input_file,
65 const base::FilePath& patch_file, 65 const base::FilePath& patch_file,
66 const base::FilePath& output_file); 66 const base::FilePath& output_file);
67 void OnPatchFileCourgette(const base::FilePath& input_file, 67 void OnPatchFileCourgette(const base::FilePath& input_file,
68 const base::FilePath& patch_file, 68 const base::FilePath& patch_file,
69 const base::FilePath& output_file); 69 const base::FilePath& output_file);
70 void OnStartupPing(); 70 void OnStartupPing();
71 #if defined(FULL_SAFE_BROWSING) 71 #if defined(FULL_SAFE_BROWSING)
72 void OnAnalyzeZipFileForDownloadProtection( 72 void OnAnalyzeZipFileForDownloadProtection(
73 const IPC::PlatformFileForTransit& zip_file); 73 const IPC::PlatformFileForTransit& zip_file,
74 const IPC::PlatformFileForTransit& temp_file);
74 #endif 75 #endif
75 #if defined(ENABLE_EXTENSIONS) 76 #if defined(ENABLE_EXTENSIONS)
76 void OnParseMediaMetadata(const std::string& mime_type, 77 void OnParseMediaMetadata(const std::string& mime_type,
77 int64 total_size, 78 int64 total_size,
78 bool get_attached_images); 79 bool get_attached_images);
79 #endif 80 #endif
80 81
81 typedef ScopedVector<UtilityMessageHandler> Handlers; 82 typedef ScopedVector<UtilityMessageHandler> Handlers;
82 Handlers handlers_; 83 Handlers handlers_;
83 84
84 // Flag to enable whitelisting. 85 // Flag to enable whitelisting.
85 bool filter_messages_; 86 bool filter_messages_;
86 // A list of message_ids to filter. 87 // A list of message_ids to filter.
87 std::set<int> message_id_whitelist_; 88 std::set<int> message_id_whitelist_;
88 // Maximum IPC msg size (default to kMaximumMessageSize; override for testing) 89 // Maximum IPC msg size (default to kMaximumMessageSize; override for testing)
89 static int64_t max_ipc_message_size_; 90 static int64_t max_ipc_message_size_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 92 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
92 }; 93 };
93 94
94 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 95 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698