 Chromium Code Reviews
 Chromium Code Reviews Issue 209613002:
  Download shelf autohides on showing in shell, just same as regular open 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 209613002:
  Download shelf autohides on showing in shell, just same as regular open 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| OLD | NEW | 
|---|---|
| 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 CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 
| 6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 
| 7 | 7 | 
| 8 #include "base/callback.h" | 8 #include "base/callback.h" | 
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" | 
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" | 
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 MOCK_CONST_METHOD0(GetTotalBytes, int64()); | 85 MOCK_CONST_METHOD0(GetTotalBytes, int64()); | 
| 86 MOCK_CONST_METHOD0(GetReceivedBytes, int64()); | 86 MOCK_CONST_METHOD0(GetReceivedBytes, int64()); | 
| 87 MOCK_CONST_METHOD0(GetStartTime, base::Time()); | 87 MOCK_CONST_METHOD0(GetStartTime, base::Time()); | 
| 88 MOCK_CONST_METHOD0(GetEndTime, base::Time()); | 88 MOCK_CONST_METHOD0(GetEndTime, base::Time()); | 
| 89 MOCK_METHOD0(CanShowInFolder, bool()); | 89 MOCK_METHOD0(CanShowInFolder, bool()); | 
| 90 MOCK_METHOD0(CanOpenDownload, bool()); | 90 MOCK_METHOD0(CanOpenDownload, bool()); | 
| 91 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool()); | 91 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool()); | 
| 92 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool()); | 92 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool()); | 
| 93 MOCK_METHOD0(GetAutoOpened, bool()); | 93 MOCK_METHOD0(GetAutoOpened, bool()); | 
| 94 MOCK_CONST_METHOD0(GetOpened, bool()); | 94 MOCK_CONST_METHOD0(GetOpened, bool()); | 
| 95 MOCK_CONST_METHOD0(GetShownWhenComplete, bool()); | |
| 
asanka
2014/06/12 21:08:47
Not used?
 | |
| 95 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); | 96 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); | 
| 96 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); | 97 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); | 
| 97 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); | 98 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); | 
| 98 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); | 99 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); | 
| 99 MOCK_METHOD1(SetIsTemporary, void(bool)); | 100 MOCK_METHOD1(SetIsTemporary, void(bool)); | 
| 100 MOCK_METHOD1(SetOpened, void(bool)); | |
| 101 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); | 101 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); | 
| 102 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 102 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 
| 103 | 103 | 
| 104 private: | 104 private: | 
| 105 ObserverList<Observer> observers_; | 105 ObserverList<Observer> observers_; | 
| 106 }; | 106 }; | 
| 107 | 107 | 
| 108 } // namespace content | 108 } // namespace content | 
| 109 | 109 | 
| 110 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 110 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 
| OLD | NEW |