/external/chromium_org/chrome/browser/extensions/api/web_navigation/ |
D | frame_navigation_state.cc | 68 bool FrameNavigationState::CanSendEvents(FrameID frame_id) const { in CanSendEvents() 70 frame_state_map_.find(frame_id); in CanSendEvents() 93 void FrameNavigationState::TrackFrame(FrameID frame_id, in TrackFrame() argument 99 FrameState& frame_state = frame_state_map_[frame_id]; in TrackFrame() 115 frame_ids_.insert(frame_id); in TrackFrame() 118 void FrameNavigationState::FrameDetached(FrameID frame_id) { in FrameDetached() argument 120 frame_state_map_.find(frame_id); in FrameDetached() 123 if (frame_id == main_frame_id_) in FrameDetached() 125 frame_state_map_.erase(frame_id); in FrameDetached() 126 frame_ids_.erase(frame_id); in FrameDetached() [all …]
|
D | frame_navigation_state.h | 47 bool CanSendEvents(FrameID frame_id) const; 53 void TrackFrame(FrameID frame_id, 61 void FrameDetached(FrameID frame_id); 69 void UpdateFrame(FrameID frame_id, const GURL& url); 72 bool IsValidFrame(FrameID frame_id) const; 75 GURL GetUrl(FrameID frame_id) const; 79 bool IsMainFrame(FrameID frame_id) const; 86 FrameID GetParentFrameID(FrameID frame_id) const; 90 void SetErrorOccurredInFrame(FrameID frame_id); 93 bool GetErrorOccurredInFrame(FrameID frame_id) const; [all …]
|
D | web_navigation_api.cc | 180 FrameNavigationState::FrameID frame_id( in Retargeting() local 183 if (!frame_navigation_state.CanSendEvents(frame_id)) in Retargeting() 193 frame_navigation_state.IsMainFrame(frame_id), in Retargeting() 201 frame_navigation_state.IsMainFrame(frame_id), in Retargeting() 222 FrameNavigationState::FrameID frame_id( in TabAdded() local 225 if (frame_navigation_state.CanSendEvents(frame_id)) { in TabAdded() 314 FrameNavigationState::FrameID frame_id( in Observe() local 315 resource_redirect_details->frame_id, render_view_host); in Observe() 316 navigation_state_.SetIsServerRedirected(frame_id); in Observe() 383 FrameNavigationState::FrameID frame_id(frame_num, render_view_host); in DidStartProvisionalLoadForFrame() local [all …]
|
D | web_navigation_api_helpers.h | 27 int GetFrameId(bool is_main_frame, int64 frame_id); 32 int64 frame_id, 40 int64 frame_id, 48 int64 frame_id); 53 int64 frame_id); 66 int64 frame_id,
|
/external/chromium_org/media/cast/net/rtp_sender/packet_storage/ |
D | packet_storage_unittest.cc | 36 for (uint32 frame_id = 0; frame_id < 30; ++frame_id) { in TEST_F() local 38 packet_storage_.StorePacket(frame_id, packet_id, &test_123); in TEST_F() 44 for (uint32 frame_id = 0; frame_id < 14; ++frame_id) { in TEST_F() local 47 EXPECT_FALSE(packet_storage_.GetPacket(frame_id, packet_id, &packets)); in TEST_F() 51 for (uint32 frame_id = 14; frame_id < 30; ++frame_id) { in TEST_F() local 53 EXPECT_TRUE(packet_storage_.GetPacket(frame_id, packet_id, &packets)); in TEST_F() 63 uint32 frame_id = 0; in TEST_F() local 66 packet_storage_.StorePacket(frame_id, packet_id, &test_123); in TEST_F() 70 EXPECT_FALSE(packet_storage_.GetPacket(frame_id, packet_id, &packets)); in TEST_F() 74 EXPECT_TRUE(packet_storage_.GetPacket(frame_id, packet_id, &packets)); in TEST_F() [all …]
|
D | packet_storage.cc | 99 void PacketStorage::StorePacket(uint32 frame_id, uint16 packet_id, in StorePacket() argument 105 uint32 index = ((0xff & frame_id) << 16) + packet_id; in StorePacket() 134 uint8 frame_id = it->first; in GetPackets() local 139 VLOG(1) << "Missing all packets in frame " << static_cast<int>(frame_id); in GetPackets() 144 success = GetPacket(frame_id, packet_id, &packets_to_resend); in GetPackets() 151 GetPacket(frame_id, *set_it, &packets_to_resend); in GetPackets() 158 bool PacketStorage::GetPacket(uint8 frame_id, in GetPacket() argument 162 uint32 index = (static_cast<uint32>(frame_id) << 16) + packet_id; in GetPacket() 168 VLOG(1) << "Resend " << static_cast<int>(frame_id) in GetPacket()
|
/external/chromium_org/media/cast/framer/ |
D | framer_unittest.cc | 25 rtp_header_.frame_id = 0; in SetUp() 61 rtp_header_.frame_id = 1; in TEST_F() 67 EXPECT_EQ(1u, frame.frame_id); in TEST_F() 69 framer_.ReleaseFrame(frame.frame_id); in TEST_F() 83 EXPECT_EQ(0u, frame.frame_id); in TEST_F() 85 framer_.ReleaseFrame(frame.frame_id); in TEST_F() 88 ++rtp_header_.frame_id; in TEST_F() 96 ++rtp_header_.frame_id; in TEST_F() 114 EXPECT_EQ(0u, frame.frame_id); in TEST_F() 116 framer_.ReleaseFrame(frame.frame_id); in TEST_F() [all …]
|
D | frame_id_map.cc | 13 FrameInfo::FrameInfo(uint32 frame_id, in FrameInfo() argument 18 frame_id_(frame_id), in FrameInfo() 66 uint32 frame_id = rtp_header.frame_id; in InsertPacket() local 71 reference_frame_id = static_cast<uint32>(frame_id - 1); in InsertPacket() 75 last_released_frame_ = static_cast<uint32>(frame_id - 1); in InsertPacket() 79 VLOG(1) << "InsertPacket frame:" << frame_id in InsertPacket() 83 if (IsOlderFrameId(frame_id, last_released_frame_) && !waiting_for_key_) { in InsertPacket() 88 if (IsNewerFrameId(frame_id, newest_frame_id_)) { in InsertPacket() 89 newest_frame_id_ = frame_id; in InsertPacket() 93 FrameMap::iterator it = frame_map_.find(frame_id); in InsertPacket() [all …]
|
D | framer.cc | 35 FrameList::iterator it = frames_.find(rtp_header.frame_id); in InsertPacket() 40 frames_.insert(std::make_pair(rtp_header.frame_id, frame_buffer)); in InsertPacket() 48 VLOG(1) << "Complete frame " << static_cast<int>(rtp_header.frame_id); in InsertPacket() 49 cast_msg_builder_->CompleteFrameReceived(rtp_header.frame_id, in InsertPacket() 59 uint32 frame_id; in GetEncodedAudioFrame() local 61 if (frame_id_map_.NextContinuousFrame(&frame_id)) { in GetEncodedAudioFrame() 65 if (!frame_id_map_.NextAudioFrameAllowingMissingFrames(&frame_id)) { in GetEncodedAudioFrame() 71 ConstFrameIterator it = frames_.find(frame_id); in GetEncodedAudioFrame() 82 uint32 frame_id; in GetEncodedVideoFrame() local 84 if (frame_id_map_.NextContinuousFrame(&frame_id)) { in GetEncodedVideoFrame() [all …]
|
D | frame_id_map.h | 22 FrameInfo(uint32 frame_id, 35 uint32 frame_id() const { return frame_id_; } in frame_id() function 60 bool FrameExists(uint32 frame_id) const; 63 void RemoveOldFrames(uint32 frame_id); 67 bool NextContinuousFrame(uint32* frame_id) const; 70 bool NextAudioFrameAllowingMissingFrames(uint32* frame_id) const; 71 bool NextVideoFrameAllowingSkippingFrames(uint32* frame_id) const; 74 void GetMissingPackets(uint32 frame_id,
|
D | cast_message_builder_unittest.cc | 56 size_t num_missing_packets(uint32 frame_id) { in num_missing_packets() argument 58 it = missing_packets_.find(frame_id); in num_missing_packets() 97 void SetFrameId(uint32 frame_id) { in SetFrameId() argument 98 rtp_header_.frame_id = frame_id; in SetFrameId() 122 cast_msg_builder_->CompleteFrameReceived(rtp_header_.frame_id, in InsertPacket() 475 uint32 frame_id; in TEST_F() local 479 for (frame_id = 1; frame_id < 3; ++frame_id) { in TEST_F() 481 EXPECT_EQ(frame_id - 1, feedback_.last_frame_acked()); in TEST_F() 482 SetFrameId(frame_id); in TEST_F() 489 for (; frame_id < 10; ++frame_id) { in TEST_F() [all …]
|
/external/chromium/chrome/browser/extensions/ |
D | extension_webnavigation_api.cc | 37 int GetFrameId(bool is_main_frame, int64 frame_id) { in GetFrameId() argument 38 return is_main_frame ? 0 : static_cast<int>(frame_id); in GetFrameId() 58 int64 frame_id, in DispatchOnBeforeNavigate() argument 67 dict->SetInteger(keys::kFrameIdKey, GetFrameId(is_main_frame, frame_id)); in DispatchOnBeforeNavigate() 80 int64 frame_id, in DispatchOnCommitted() argument 89 dict->SetInteger(keys::kFrameIdKey, GetFrameId(is_main_frame, frame_id)); in DispatchOnCommitted() 112 int64 frame_id) { in DispatchOnDOMContentLoaded() argument 119 is_main_frame ? 0 : static_cast<int>(frame_id)); in DispatchOnDOMContentLoaded() 132 int64 frame_id) { in DispatchOnCompleted() argument 139 is_main_frame ? 0 : static_cast<int>(frame_id)); in DispatchOnCompleted() [all …]
|
D | extension_webnavigation_api.h | 34 bool CanSendEvents(int64 frame_id) const; 38 void TrackFrame(int64 frame_id, 45 GURL GetUrl(int64 frame_id) const; 48 bool IsMainFrame(int64 frame_id) const; 51 void ErrorOccurredInFrame(int64 frame_id); 90 virtual void DidStartProvisionalLoadForFrame(int64 frame_id, 95 int64 frame_id, 99 virtual void DidFailProvisionalLoad(int64 frame_id, 103 virtual void DocumentLoadedInFrame(int64 frame_id) OVERRIDE; 104 virtual void DidFinishLoad(int64 frame_id) OVERRIDE; [all …]
|
D | extension_webnavigation_unittest.cc | 55 const int64 frame_id = 42; in TEST_F() local 58 navigation_state.TrackFrame(frame_id, url, true, false, contents()); in TEST_F() 59 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id)); in TEST_F() 62 navigation_state.ErrorOccurredInFrame(frame_id); in TEST_F() 63 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id)); in TEST_F() 66 navigation_state.TrackFrame(frame_id, GURL(), true, true, contents()); in TEST_F() 67 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id)); in TEST_F() 70 navigation_state.TrackFrame(frame_id, url, true, false, contents()); in TEST_F() 71 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id)); in TEST_F() 106 const int64 frame_id = 23; in TEST_F() local [all …]
|
/external/chromium_org/chrome/test/chromedriver/chrome/ |
D | dom_tracker_unittest.cc | 53 std::string frame_id; in TEST() local 54 ASSERT_TRUE(tracker.GetFrameIdForNode(101, &frame_id).IsError()); in TEST() 55 ASSERT_TRUE(frame_id.empty()); in TEST() 65 ASSERT_TRUE(tracker.GetFrameIdForNode(101, &frame_id).IsError()); in TEST() 66 ASSERT_TRUE(frame_id.empty()); in TEST() 67 ASSERT_TRUE(tracker.GetFrameIdForNode(102, &frame_id).IsOk()); in TEST() 68 ASSERT_STREQ("f", frame_id.c_str()); in TEST() 72 ASSERT_TRUE(tracker.GetFrameIdForNode(102, &frame_id).IsError()); in TEST() 79 std::string frame_id; in TEST() local 85 ASSERT_TRUE(tracker.GetFrameIdForNode(1, &frame_id).IsError()); in TEST() [all …]
|
D | navigation_tracker.cc | 27 Status NavigationTracker::IsPendingNavigation(const std::string& frame_id, in IsPendingNavigation() argument 64 if (frame_id.empty()) in IsPendingNavigation() 67 *is_pending |= scheduled_frame_set_.count(frame_id) > 0; in IsPendingNavigation() 95 std::string frame_id; in OnEvent() local 96 if (!params.GetString("frameId", &frame_id)) in OnEvent() 102 scheduled_frame_set_.insert(frame_id); in OnEvent() 104 std::string frame_id; in OnEvent() local 105 if (!params.GetString("frameId", &frame_id)) in OnEvent() 108 scheduled_frame_set_.erase(frame_id); in OnEvent()
|
D | frame_tracker.cc | 21 const std::string& frame_id, int* context_id) { in GetContextIdForFrame() argument 22 if (frame_to_context_map_.count(frame_id) == 0) { in GetContextIdForFrame() 26 *context_id = frame_to_context_map_[frame_id]; in GetContextIdForFrame() 51 std::string frame_id; in OnEvent() local 53 !context->GetString("frameId", &frame_id)) { in OnEvent() 60 frame_to_context_map_[frame_id] = context_id; in OnEvent()
|
/external/chromium_org/media/cast/logging/ |
D | logging_internal.cc | 16 void FrameLogData::Insert(uint32 rtp_timestamp, uint32 frame_id) { in Insert() argument 18 InsertBase(rtp_timestamp, frame_id, info); in Insert() 22 uint32 rtp_timestamp, uint32 frame_id, int size) { in InsertWithSize() argument 25 InsertBase(rtp_timestamp, frame_id, info); in InsertWithSize() 29 uint32 rtp_timestamp, uint32 frame_id, base::TimeDelta delay) { in InsertWithDelay() argument 32 InsertBase(rtp_timestamp, frame_id, info); in InsertWithDelay() 36 uint32 rtp_timestamp, uint32 frame_id, FrameEvent info) { in InsertBase() argument 38 info.frame_id = frame_id; in InsertBase() 49 uint32 frame_id, uint16 packet_id, uint16 max_packet_id, int size) { in Insert() argument 53 info.frame_id = frame_id; in Insert()
|
D | logging_unittest.cc | 43 uint32 frame_id = 0; in TEST_F() local 45 logging_.InsertFrameEvent(kAudioFrameCaptured, rtp_timestamp, frame_id); in TEST_F() 49 ++frame_id; in TEST_F() 55 EXPECT_EQ(frame_id, frame_map.size()); in TEST_F() 76 uint32 frame_id = 0; in TEST_F() local 81 kAudioFrameCaptured, rtp_timestamp, frame_id, size); in TEST_F() 85 ++frame_id; in TEST_F() 91 EXPECT_EQ(frame_id, frame_map.size()); in TEST_F() 113 uint32 frame_id = 0; in TEST_F() local 118 kAudioFrameCaptured, rtp_timestamp, frame_id, in TEST_F() [all …]
|
D | logging_raw.cc | 25 uint32 frame_id) { in InsertFrameEvent() argument 26 InsertBaseFrameEvent(event, frame_id, rtp_timestamp); in InsertFrameEvent() 31 uint32 frame_id, in InsertFrameEventWithSize() argument 33 InsertBaseFrameEvent(event, frame_id, rtp_timestamp); in InsertFrameEventWithSize() 42 uint32 frame_id, in InsertFrameEventWithDelay() argument 44 InsertBaseFrameEvent(event, frame_id, rtp_timestamp); in InsertFrameEventWithDelay() 52 uint32 frame_id, in InsertBaseFrameEvent() argument 59 info.frame_id = frame_id; in InsertBaseFrameEvent() 69 if (it->second.frame_id == kFrameIdUnknown && frame_id != kFrameIdUnknown) in InsertBaseFrameEvent() 70 it->second.frame_id = frame_id; in InsertBaseFrameEvent() [all …]
|
D | logging_internal.h | 21 uint32 frame_id; member 28 uint32 frame_id; member 43 void Insert(uint32 rtp_timestamp, uint32 frame_id); 45 void InsertWithSize(uint32 rtp_timestamp, uint32 frame_id, int size); 48 uint32 rtp_timestamp, uint32 frame_id, base::TimeDelta delay); 52 void InsertBase(uint32 rtp_timestamp, uint32 frame_id, FrameEvent info); 65 void Insert(uint32 rtp_timestamp, uint32 frame_id, uint16 packet_id,
|
D | logging_impl.cc | 25 uint32 frame_id) { in InsertFrameEvent() argument 28 raw_.InsertFrameEvent(event, rtp_timestamp, frame_id); in InsertFrameEvent() 29 stats_.InsertFrameEvent(event, rtp_timestamp, frame_id); in InsertFrameEvent() 35 frame_id); in InsertFrameEvent() 41 uint32 frame_id, in InsertFrameEventWithSize() argument 45 raw_.InsertFrameEventWithSize(event, rtp_timestamp, frame_id, frame_size); in InsertFrameEventWithSize() 46 stats_.InsertFrameEventWithSize(event, rtp_timestamp, frame_id, frame_size); in InsertFrameEventWithSize() 61 uint32 frame_id, in InsertFrameEventWithDelay() argument 65 raw_.InsertFrameEventWithDelay(event, rtp_timestamp, frame_id, delay); in InsertFrameEventWithDelay() 66 stats_.InsertFrameEventWithDelay(event, rtp_timestamp, frame_id, delay); in InsertFrameEventWithDelay() [all …]
|
/external/chromium_org/content/browser/frame_host/ |
D | frame_tree.cc | 33 bool FrameTreeNodeForFrameId(int64 frame_id, in FrameTreeNodeForFrameId() argument 36 if (node->frame_id() == frame_id) { in FrameTreeNodeForFrameId() 90 return root_->frame_id() == FrameTreeNode::kInvalidFrameId; in IsFirstNavigationAfterSwap() 99 int64 frame_id, in AddFrame() argument 108 frame_id, frame_name, render_frame_host_id, parent)); in AddFrame() 116 int64 frame_id) { in RemoveFrame() argument 125 FrameTreeNode* child = FindByFrameID(frame_id); in RemoveFrame() 128 render_frame_host->render_view_host(), frame_id); in RemoveFrame() 139 void FrameTree::SetFrameUrl(int64 frame_id, const GURL& url) { in SetFrameUrl() argument 140 FrameTreeNode* node = FindByFrameID(frame_id); in SetFrameUrl() [all …]
|
/external/chromium_org/media/cast/ |
D | cast_defines.h | 71 inline bool IsNewerFrameId(uint32 frame_id, uint32 prev_frame_id) { in IsNewerFrameId() argument 72 return (frame_id != prev_frame_id) && in IsNewerFrameId() 73 static_cast<uint32>(frame_id - prev_frame_id) < 0x80000000; in IsNewerFrameId() 81 inline bool IsOlderFrameId(uint32 frame_id, uint32 prev_frame_id) { in IsOlderFrameId() argument 82 return (frame_id == prev_frame_id) || IsNewerFrameId(prev_frame_id, frame_id); in IsOlderFrameId() 143 inline std::string GetAesNonce(uint32 frame_id, const std::string& iv_mask) { in GetAesNonce() argument 148 aes_nonce[11] = frame_id & 0xff; in GetAesNonce() 149 aes_nonce[10] = (frame_id >> 8) & 0xff; in GetAesNonce() 150 aes_nonce[9] = (frame_id >> 16) & 0xff; in GetAesNonce() 151 aes_nonce[8] = (frame_id >> 24) & 0xff; in GetAesNonce()
|
/external/chromium_org/chrome/test/chromedriver/ |
D | session.cc | 26 const std::string& frame_id, in FrameInfo() argument 29 frame_id(frame_id), in FrameInfo() 70 void Session::SwitchToSubFrame(const std::string& frame_id, in SwitchToSubFrame() argument 74 parent_frame_id = frames.back().frame_id; in SwitchToSubFrame() 75 frames.push_back(FrameInfo(parent_frame_id, frame_id, chromedriver_frame_id)); in SwitchToSubFrame() 81 return frames.back().frame_id; in GetCurrentFrameId()
|