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

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

Issue 10855075: Clean-up inline members of nested classes (chrome/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 #include "chrome/browser/sessions/base_session_service.h" 5 #include "chrome/browser/sessions/base_session_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/pickle.h" 9 #include "base/pickle.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/sessions/session_backend.h" 14 #include "chrome/browser/sessions/session_backend.h"
15 #include "chrome/browser/sessions/session_types.h" 15 #include "chrome/browser/sessions/session_types.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/navigation_entry.h" 19 #include "content/public/browser/navigation_entry.h"
20 #include "content/public/common/referrer.h" 20 #include "content/public/common/referrer.h"
21 #include "webkit/glue/webkit_glue.h" 21 #include "webkit/glue/webkit_glue.h"
22 22
23 using WebKit::WebReferrerPolicy; 23 using WebKit::WebReferrerPolicy;
24 using content::BrowserThread; 24 using content::BrowserThread;
25 using content::NavigationEntry; 25 using content::NavigationEntry;
26 26
27 // InternalGetCommandsRequest ------------------------------------------------- 27 // InternalGetCommandsRequest -------------------------------------------------
28 28
29 BaseSessionService::InternalGetCommandsRequest::InternalGetCommandsRequest(
30 const CallbackType& callback)
31 : CancelableRequest<InternalGetCommandsCallback>(callback) {
32 }
33
29 BaseSessionService::InternalGetCommandsRequest::~InternalGetCommandsRequest() { 34 BaseSessionService::InternalGetCommandsRequest::~InternalGetCommandsRequest() {
30 STLDeleteElements(&commands); 35 STLDeleteElements(&commands);
31 } 36 }
32 37
33 // BaseSessionService --------------------------------------------------------- 38 // BaseSessionService ---------------------------------------------------------
34 39
35 namespace { 40 namespace {
36 41
37 // Helper used by CreateUpdateTabNavigationCommand(). It writes |str| to 42 // Helper used by CreateUpdateTabNavigationCommand(). It writes |str| to
38 // |pickle|, if and only if |str| fits within (|max_bytes| - |*bytes_written|). 43 // |pickle|, if and only if |str| fits within (|max_bytes| - |*bytes_written|).
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // has gone away (around shutdown time) or if we're running as 380 // has gone away (around shutdown time) or if we're running as
376 // part of a unit test that does not set profile_. 381 // part of a unit test that does not set profile_.
377 task.Run(); 382 task.Run();
378 return true; 383 return true;
379 } 384 }
380 } 385 }
381 386
382 bool BaseSessionService::RunningInProduction() const { 387 bool BaseSessionService::RunningInProduction() const {
383 return profile_ && BrowserThread::IsMessageLoopValid(BrowserThread::FILE); 388 return profile_ && BrowserThread::IsMessageLoopValid(BrowserThread::FILE);
384 } 389 }
OLDNEW
« no previous file with comments | « chrome/browser/sessions/base_session_service.h ('k') | chrome/browser/speech/chrome_speech_recognition_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698