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

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

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_
6 #define CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ 6 #define CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Deletes the last session. 53 // Deletes the last session.
54 void DeleteLastSession(); 54 void DeleteLastSession();
55 55
56 typedef base::Callback<void(ScopedVector<SessionCommand>)> 56 typedef base::Callback<void(ScopedVector<SessionCommand>)>
57 InternalGetCommandsCallback; 57 InternalGetCommandsCallback;
58 58
59 protected: 59 protected:
60 virtual ~BaseSessionService(); 60 virtual ~BaseSessionService();
61 61
62 // Returns the backend. 62 // Returns the backend.
63 SessionBackend* backend() const { return backend_; } 63 SessionBackend* backend() const { return backend_.get(); }
64 64
65 // Returns the set of commands that needed to be scheduled. The commands 65 // Returns the set of commands that needed to be scheduled. The commands
66 // in the vector are owned by BaseSessionService, until they are scheduled 66 // in the vector are owned by BaseSessionService, until they are scheduled
67 // on the backend at which point the backend owns the commands. 67 // on the backend at which point the backend owns the commands.
68 std::vector<SessionCommand*>& pending_commands() { 68 std::vector<SessionCommand*>& pending_commands() {
69 return pending_commands_; 69 return pending_commands_;
70 } 70 }
71 71
72 // Whether the next save resets the file before writing to it. 72 // Whether the next save resets the file before writing to it.
73 void set_pending_reset(bool value) { pending_reset_ = value; } 73 void set_pending_reset(bool value) { pending_reset_ = value; }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // over the commands. 186 // over the commands.
187 bool pending_reset_; 187 bool pending_reset_;
188 188
189 // The number of commands sent to the backend before doing a reset. 189 // The number of commands sent to the backend before doing a reset.
190 int commands_since_reset_; 190 int commands_since_reset_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(BaseSessionService); 192 DISALLOW_COPY_AND_ASSIGN(BaseSessionService);
193 }; 193 };
194 194
195 #endif // CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_ 195 #endif // CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/service/service_process_control.cc ('k') | chrome/browser/sessions/tab_restore_service_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698