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

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

Issue 665253002: Standardize usage of virtual/override/final in chrome/browser/download/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 #include "chrome/browser/download/chrome_download_manager_delegate.h" 5 #include "chrome/browser/download/chrome_download_manager_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #if defined(FULL_SAFE_BROWSING) 72 #if defined(FULL_SAFE_BROWSING)
73 73
74 // String pointer used for identifying safebrowing data associated with 74 // String pointer used for identifying safebrowing data associated with
75 // a download item. 75 // a download item.
76 const char kSafeBrowsingUserDataKey[] = "Safe Browsing ID"; 76 const char kSafeBrowsingUserDataKey[] = "Safe Browsing ID";
77 77
78 // The state of a safebrowsing check. 78 // The state of a safebrowsing check.
79 class SafeBrowsingState : public DownloadCompletionBlocker { 79 class SafeBrowsingState : public DownloadCompletionBlocker {
80 public: 80 public:
81 SafeBrowsingState() {} 81 SafeBrowsingState() {}
82 virtual ~SafeBrowsingState(); 82 ~SafeBrowsingState() override;
83 83
84 private: 84 private:
85 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingState); 85 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingState);
86 }; 86 };
87 87
88 SafeBrowsingState::~SafeBrowsingState() {} 88 SafeBrowsingState::~SafeBrowsingState() {}
89 89
90 #endif // FULL_SAFE_BROWSING 90 #endif // FULL_SAFE_BROWSING
91 91
92 // Used with GetPlatformDownloadPath() to indicate which platform path to 92 // Used with GetPlatformDownloadPath() to indicate which platform path to
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 path.MatchesExtension(FILE_PATH_LITERAL(".xht")) || 733 path.MatchesExtension(FILE_PATH_LITERAL(".xht")) ||
734 path.MatchesExtension(FILE_PATH_LITERAL(".xhtm")) || 734 path.MatchesExtension(FILE_PATH_LITERAL(".xhtm")) ||
735 path.MatchesExtension(FILE_PATH_LITERAL(".xhtml")) || 735 path.MatchesExtension(FILE_PATH_LITERAL(".xhtml")) ||
736 path.MatchesExtension(FILE_PATH_LITERAL(".xsl")) || 736 path.MatchesExtension(FILE_PATH_LITERAL(".xsl")) ||
737 path.MatchesExtension(FILE_PATH_LITERAL(".xslt"))) { 737 path.MatchesExtension(FILE_PATH_LITERAL(".xslt"))) {
738 return true; 738 return true;
739 } 739 }
740 #endif 740 #endif
741 return false; 741 return false;
742 } 742 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698