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

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

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | 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/session_service.h" 5 #include "chrome/browser/sessions/session_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 #include "chrome/browser/sessions/session_restore.h" 29 #include "chrome/browser/sessions/session_restore.h"
30 #include "chrome/browser/sessions/session_tab_helper.h" 30 #include "chrome/browser/sessions/session_tab_helper.h"
31 #include "chrome/browser/sessions/session_types.h" 31 #include "chrome/browser/sessions/session_types.h"
32 #include "chrome/browser/ui/browser_iterator.h" 32 #include "chrome/browser/ui/browser_iterator.h"
33 #include "chrome/browser/ui/browser_list.h" 33 #include "chrome/browser/ui/browser_list.h"
34 #include "chrome/browser/ui/browser_tabstrip.h" 34 #include "chrome/browser/ui/browser_tabstrip.h"
35 #include "chrome/browser/ui/browser_window.h" 35 #include "chrome/browser/ui/browser_window.h"
36 #include "chrome/browser/ui/host_desktop.h" 36 #include "chrome/browser/ui/host_desktop.h"
37 #include "chrome/browser/ui/startup/startup_browser_creator.h" 37 #include "chrome/browser/ui/startup/startup_browser_creator.h"
38 #include "chrome/browser/ui/tabs/tab_strip_model.h" 38 #include "chrome/browser/ui/tabs/tab_strip_model.h"
39 #include "chrome/common/extensions/extension.h"
40 #include "components/startup_metric_utils/startup_metric_utils.h" 39 #include "components/startup_metric_utils/startup_metric_utils.h"
41 #include "content/public/browser/navigation_details.h" 40 #include "content/public/browser/navigation_details.h"
42 #include "content/public/browser/navigation_entry.h" 41 #include "content/public/browser/navigation_entry.h"
43 #include "content/public/browser/notification_details.h" 42 #include "content/public/browser/notification_details.h"
44 #include "content/public/browser/notification_service.h" 43 #include "content/public/browser/notification_service.h"
45 #include "content/public/browser/session_storage_namespace.h" 44 #include "content/public/browser/session_storage_namespace.h"
46 #include "content/public/browser/web_contents.h" 45 #include "content/public/browser/web_contents.h"
46 #include "extensions/common/extension.h"
47 47
48 #if defined(OS_MACOSX) 48 #if defined(OS_MACOSX)
49 #include "chrome/browser/app_controller_mac.h" 49 #include "chrome/browser/app_controller_mac.h"
50 #endif 50 #endif
51 51
52 using base::Time; 52 using base::Time;
53 using content::NavigationEntry; 53 using content::NavigationEntry;
54 using content::WebContents; 54 using content::WebContents;
55 using sessions::SerializedNavigationEntry; 55 using sessions::SerializedNavigationEntry;
56 56
(...skipping 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after
1762 contents->GetController().GetDefaultSessionStorageNamespace(); 1762 contents->GetController().GetDefaultSessionStorageNamespace();
1763 session_storage_namespace->SetShouldPersist(false); 1763 session_storage_namespace->SetShouldPersist(false);
1764 SessionTabHelper* session_tab_helper = 1764 SessionTabHelper* session_tab_helper =
1765 SessionTabHelper::FromWebContents(contents); 1765 SessionTabHelper::FromWebContents(contents);
1766 TabClosed(session_tab_helper->window_id(), 1766 TabClosed(session_tab_helper->window_id(),
1767 session_tab_helper->session_id(), 1767 session_tab_helper->session_id(),
1768 contents->GetClosedByUserGesture()); 1768 contents->GetClosedByUserGesture());
1769 RecordSessionUpdateHistogramData(content::NOTIFICATION_WEB_CONTENTS_DESTROYED, 1769 RecordSessionUpdateHistogramData(content::NOTIFICATION_WEB_CONTENTS_DESTROYED,
1770 &last_updated_tab_closed_time_); 1770 &last_updated_tab_closed_time_);
1771 } 1771 }
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_service_unittest.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