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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2038843003: bluetooth: Don't call methods of WebContentsImpl while it's being destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address moar comments Created 4 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
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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 const base::string16& GetLoadStateHost() const override; 284 const base::string16& GetLoadStateHost() const override;
285 uint64_t GetUploadSize() const override; 285 uint64_t GetUploadSize() const override;
286 uint64_t GetUploadPosition() const override; 286 uint64_t GetUploadPosition() const override;
287 const std::string& GetEncoding() const override; 287 const std::string& GetEncoding() const override;
288 bool DisplayedInsecureContent() const override; 288 bool DisplayedInsecureContent() const override;
289 void IncrementCapturerCount(const gfx::Size& capture_size) override; 289 void IncrementCapturerCount(const gfx::Size& capture_size) override;
290 void DecrementCapturerCount() override; 290 void DecrementCapturerCount() override;
291 int GetCapturerCount() const override; 291 int GetCapturerCount() const override;
292 bool IsAudioMuted() const override; 292 bool IsAudioMuted() const override;
293 void SetAudioMuted(bool mute) override; 293 void SetAudioMuted(bool mute) override;
294 void IncrementBluetoothConnectedDeviceCount();
295 void DecrementBluetoothConnectedDeviceCount();
296 bool IsConnectedToBluetoothDevice() const override; 294 bool IsConnectedToBluetoothDevice() const override;
297 bool IsCrashed() const override; 295 bool IsCrashed() const override;
298 void SetIsCrashed(base::TerminationStatus status, int error_code) override; 296 void SetIsCrashed(base::TerminationStatus status, int error_code) override;
299 base::TerminationStatus GetCrashedStatus() const override; 297 base::TerminationStatus GetCrashedStatus() const override;
300 int GetCrashedErrorCode() const override; 298 int GetCrashedErrorCode() const override;
301 bool IsBeingDestroyed() const override; 299 bool IsBeingDestroyed() const override;
302 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; 300 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override;
303 base::TimeTicks GetLastActiveTime() const override; 301 base::TimeTicks GetLastActiveTime() const override;
304 void SetLastActiveTime(base::TimeTicks last_active_time) override; 302 void SetLastActiveTime(base::TimeTicks last_active_time) override;
305 void WasShown() override; 303 void WasShown() override;
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 void UpdateWebContentsVisibility(bool visible); 745 void UpdateWebContentsVisibility(bool visible);
748 746
749 // Called by FindRequestManager when find replies come in from a renderer 747 // Called by FindRequestManager when find replies come in from a renderer
750 // process. 748 // process.
751 void NotifyFindReply(int request_id, 749 void NotifyFindReply(int request_id,
752 int number_of_matches, 750 int number_of_matches,
753 const gfx::Rect& selection_rect, 751 const gfx::Rect& selection_rect,
754 int active_match_ordinal, 752 int active_match_ordinal,
755 bool final_update); 753 bool final_update);
756 754
755 // The following two methods have no effect while IsBeingDestroyed is true.
ncarter (slow) 2016/06/08 19:15:35 This is an implementation detail that doesn't belo
ortuno 2016/06/09 17:40:02 Done.
756 void IncrementBluetoothConnectedDeviceCount();
757 void DecrementBluetoothConnectedDeviceCount();
758
757 #if defined(OS_ANDROID) 759 #if defined(OS_ANDROID)
758 // Called by FindRequestManager when all of the find match rects are in. 760 // Called by FindRequestManager when all of the find match rects are in.
759 void NotifyFindMatchRectsReply(int version, 761 void NotifyFindMatchRectsReply(int version,
760 const std::vector<gfx::RectF>& rects, 762 const std::vector<gfx::RectF>& rects,
761 const gfx::RectF& active_rect); 763 const gfx::RectF& active_rect);
762 #endif 764 #endif
763 765
764 private: 766 private:
765 friend class WebContentsObserver; 767 friend class WebContentsObserver;
766 friend class WebContents; // To implement factory methods. 768 friend class WebContents; // To implement factory methods.
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 // Adds/removes a callback called on creation of each new WebContents. 1404 // Adds/removes a callback called on creation of each new WebContents.
1403 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1405 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1404 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1406 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1405 1407
1406 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1408 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1407 }; 1409 };
1408 1410
1409 } // namespace content 1411 } // namespace content
1410 1412
1411 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1413 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698