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

Side by Side Diff: chrome/browser/sessions/base_session_service_delegate_impl.h

Issue 694813003: Changing SessionService to have a BaseSessionService, not being one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed browser tests Created 6 years, 1 month 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 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 CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_DELEGATE_IMPL_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_DELEGATE_IMPL_H_ 6 #define CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_DELEGATE_IMPL_H_
7 7
8 #include "chrome/browser/sessions/base_session_service_delegate.h" 8 #include "chrome/browser/sessions/base_session_service_delegate.h"
9 9
10 class BaseSessionServiceDelegateImpl : public BaseSessionServiceDelegate { 10 class BaseSessionServiceDelegateImpl : public BaseSessionServiceDelegate {
11 public: 11 public:
12 // If |use_delayed_save| is true, save operations can be performed as a 12 // If |use_delayed_save| is true, save operations can be performed as a
13 // delayed task. Generally |used_delayed_save| should be true, testing may 13 // delayed task. Generally |used_delayed_save| should be true, testing may
14 // supply false. 14 // supply false.
15 explicit BaseSessionServiceDelegateImpl(bool should_use_delayed_save); 15 explicit BaseSessionServiceDelegateImpl(bool should_use_delayed_save);
16 ~BaseSessionServiceDelegateImpl() override {} 16 ~BaseSessionServiceDelegateImpl() override {}
17 17
18 // BaseSessionServiceDelegate: 18 // BaseSessionServiceDelegate:
19 base::SequencedWorkerPool* GetBlockingPool() override; 19 base::SequencedWorkerPool* GetBlockingPool() override;
20 bool ShouldTrackEntry(const GURL& url) override; 20 bool ShouldTrackEntry(const GURL& url) override;
21 bool ShouldUseDelayedSave() override; 21 bool ShouldUseDelayedSave() override;
22 void OnWillSaveCommands() override {}
23 void OnSavedCommands() override {}
22 24
23 private: 25 private:
24 // True if save operations can be performed as a delayed task. This can be 26 // True if save operations can be performed as a delayed task. This can be
25 // disabled for unit tests. 27 // disabled for unit tests.
26 const bool should_use_delayed_save_; 28 const bool should_use_delayed_save_;
27 29
28 DISALLOW_COPY_AND_ASSIGN(BaseSessionServiceDelegateImpl); 30 DISALLOW_COPY_AND_ASSIGN(BaseSessionServiceDelegateImpl);
29 }; 31 };
30 32
31 #endif // CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_DELEGATE_IMPL_H_ 33 #endif // CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/base_session_service_delegate.h ('k') | chrome/browser/sessions/base_session_service_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698