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

Side by Side Diff: components/offline_pages/downloads/download_ui_adapter.h

Issue 2264233002: Fix a crash in DownloadUIAddapter that happens when Java bridge is created/removed quickly while (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_
6 #define COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_ 6 #define COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // Always valid, this class is a member of the model. 110 // Always valid, this class is a member of the model.
111 OfflinePageModel* model_; 111 OfflinePageModel* model_;
112 112
113 bool is_loaded_; 113 bool is_loaded_;
114 114
115 // The cache of UI items. The key is DownloadUIItem.guid. 115 // The cache of UI items. The key is DownloadUIItem.guid.
116 DownloadUIItems items_; 116 DownloadUIItems items_;
117 117
118 // The observers. 118 // The observers.
119 base::ObserverList<Observer> observers_; 119 base::ObserverList<Observer> observers_;
120 int observers_count_;
120 121
121 base::WeakPtrFactory<DownloadUIAdapter> weak_ptr_factory_; 122 base::WeakPtrFactory<DownloadUIAdapter> weak_ptr_factory_;
122 123
123 DISALLOW_COPY_AND_ASSIGN(DownloadUIAdapter); 124 DISALLOW_COPY_AND_ASSIGN(DownloadUIAdapter);
124 }; 125 };
125 126
126 } // namespace offline_pages 127 } // namespace offline_pages
127 128
128 #endif // COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_ 129 #endif // COMPONENTS_OFFLINE_PAGE_DOWNLOADS_DOWNLOAD_UI_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698