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

Side by Side Diff: chrome/browser/download/download_commands.cc

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: rebase again Created 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "chrome/browser/download/download_commands.h" 5 #include "chrome/browser/download/download_commands.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/threading/sequenced_worker_pool.h" 14 #include "base/threading/sequenced_worker_pool.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
17 #include "chrome/browser/download/download_crx_util.h" 17 #include "chrome/browser/download/download_crx_util.h"
18 #include "chrome/browser/download/download_item_model.h" 18 #include "chrome/browser/download/download_item_model.h"
19 #include "chrome/browser/download/download_prefs.h" 19 #include "chrome/browser/download/download_prefs.h"
20 #include "chrome/browser/image_decoder.h" 20 #include "chrome/browser/image_decoder.h"
21 #include "chrome/browser/profiles/profile_manager.h" 21 #include "chrome/browser/profiles/profile_manager.h"
22 #include "chrome/browser/safe_browsing/download_protection_service.h" 22 #include "chrome/browser/safe_browsing/download_protection_service.h"
23 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 23 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
24 #include "chrome/browser/ui/browser_finder.h" 24 #include "chrome/browser/ui/browser_finder.h"
25 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" 25 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
26 #include "chrome/common/safe_browsing/csd.pb.h"
27 #include "chrome/common/safe_browsing/file_type_policies.h" 26 #include "chrome/common/safe_browsing/file_type_policies.h"
28 #include "chrome/common/url_constants.h" 27 #include "chrome/common/url_constants.h"
29 #include "chrome/grit/theme_resources.h" 28 #include "chrome/grit/theme_resources.h"
30 #include "components/google/core/browser/google_util.h" 29 #include "components/google/core/browser/google_util.h"
30 #include "components/safe_browsing/csd.pb.h"
31 #include "net/base/url_util.h" 31 #include "net/base/url_util.h"
32 #include "ui/base/clipboard/scoped_clipboard_writer.h" 32 #include "ui/base/clipboard/scoped_clipboard_writer.h"
33 #include "ui/base/resource/resource_bundle.h" 33 #include "ui/base/resource/resource_bundle.h"
34 34
35 #if defined(OS_WIN) 35 #if defined(OS_WIN)
36 #include "chrome/browser/download/download_target_determiner.h" 36 #include "chrome/browser/download/download_target_determiner.h"
37 #include "chrome/browser/ui/pdf/adobe_reader_info_win.h" 37 #include "chrome/browser/ui/pdf/adobe_reader_info_win.h"
38 #endif 38 #endif
39 39
40 #if defined(OS_CHROMEOS) 40 #if defined(OS_CHROMEOS)
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 download_item_->GetReceivedBytes() > kMaxImageClipboardSize) { 403 download_item_->GetReceivedBytes() > kMaxImageClipboardSize) {
404 return; 404 return;
405 } 405 }
406 406
407 if (!DownloadItemModel(download_item_).HasSupportedImageMimeType()) 407 if (!DownloadItemModel(download_item_).HasSupportedImageMimeType())
408 return; 408 return;
409 409
410 base::FilePath file_path = download_item_->GetFullPath(); 410 base::FilePath file_path = download_item_->GetFullPath();
411 ImageClipboardCopyManager::Start(file_path); 411 ImageClipboardCopyManager::Start(file_path);
412 } 412 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/download/download_danger_prompt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698